Class GraphicsCache
- Namespace
- Crux.Graphics
- Assembly
- Crux.dll
public static class GraphicsCache
- Inheritance
-
GraphicsCache
- Inherited Members
-
Fields
DrawCallsLastFrame
public static int DrawCallsLastFrame
Field Value
- int
DrawCallsThisFrame
public static int DrawCallsThisFrame
Field Value
- int
FramesPerSecond
public static float FramesPerSecond
Field Value
- float
LinesLastFrame
public static int LinesLastFrame
Field Value
- int
LinesThisFrame
public static int LinesThisFrame
Field Value
- int
Textures
public static Dictionary<string, (int id, int users)> Textures
Field Value
- Dictionary<string, (int id, int users)>
Tree
public static Octree Tree
Field Value
- Octree
TrianglesLastFrame
public static int TrianglesLastFrame
Field Value
- int
TrianglesThisFrame
public static int TrianglesThisFrame
Field Value
- int
VAOs
public static Dictionary<string, (MeshBuffer meshBuffer, int users)> VAOs
Field Value
- Dictionary<string, (MeshBuffer meshBuffer, int users)>
common_frag
public static string common_frag
Field Value
- string
common_vert
public static string common_vert
Field Value
- string
Methods
GetFragmentShader(string, bool)
public static int GetFragmentShader(string cacheKey, bool useInstancing)
Parameters
cacheKey
string
useInstancing
bool
Returns
- int
GetFullInfo()
public static string GetFullInfo()
Returns
- string
GetInstancedLineBuffer(string, Vector3[])
public static MeshBuffer GetInstancedLineBuffer(string cacheKey, Vector3[] vertices)
Parameters
cacheKey
string
vertices
Vector3[]
Returns
- MeshBuffer
GetInstancedMeshBuffer(string, Mesh)
public static MeshBuffer GetInstancedMeshBuffer(string cacheKey, Mesh mesh)
Parameters
cacheKey
string
mesh
Mesh
Returns
- MeshBuffer
GetInstancedQuadBuffer(string)
public static MeshBuffer GetInstancedQuadBuffer(string cacheKey)
Parameters
cacheKey
string
Returns
- MeshBuffer
GetLineBuffer(string, Vector3[])
public static MeshBuffer GetLineBuffer(string cacheKey, Vector3[] vertices)
Parameters
cacheKey
string
vertices
Vector3[]
Returns
- MeshBuffer
GetMeshBuffer(string, Mesh)
public static MeshBuffer GetMeshBuffer(string cacheKey, Mesh mesh)
Parameters
cacheKey
string
mesh
Mesh
Returns
- MeshBuffer
GetProgram((int vert, int frag))
public static int GetProgram((int vert, int frag) ids)
Parameters
ids
(int vert, int frag)
Returns
- int
GetShortInfo()
public static string GetShortInfo()
Returns
- string
GetSkyboxBuffer()
[Obsolete("Feature not maintained")]
public static MeshBuffer GetSkyboxBuffer()
Returns
- MeshBuffer
GetTexture(string)
public static int GetTexture(string cacheKey)
Parameters
cacheKey
string
Returns
- int
GetUIBuffer()
[Obsolete("Feature not maintained")]
public static MeshBuffer GetUIBuffer()
Returns
- MeshBuffer
GetVertexShader(string, bool)
public static int GetVertexShader(string cacheKey, bool useInstancing)
Parameters
cacheKey
string
useInstancing
bool
Returns
- int
RemoveBuffer(string)
public static void RemoveBuffer(string cacheKey)
Parameters
cacheKey
string
RemoveFragmentUser(string, bool)
public static void RemoveFragmentUser(string cacheKey, bool useInstancing)
Parameters
cacheKey
string
useInstancing
bool
RemoveProgramUser((int vert, int frag))
public static void RemoveProgramUser((int vert, int frag) ids)
Parameters
ids
(int vert, int frag)
RemoveTextureUser(string)
public static void RemoveTextureUser(string cacheKey)
Parameters
cacheKey
string
RemoveVertexUser(string, bool)
public static void RemoveVertexUser(string cacheKey, bool useInstancing)
Parameters
cacheKey
string
useInstancing
bool