Class GraphicsContext
- Namespace
- TaleWorlds.TwoDimension.Standalone
- Assembly
- TaleWorlds.TwoDimension.Standalone.dll
public class GraphicsContext
- Inheritance
-
GraphicsContext
- Inherited Members
Constructors
GraphicsContext()
public GraphicsContext()
Fields
MaxFrameRate
public const int MaxFrameRate = 60
Field Value
MaxTimeToRenderOneFrame
public readonly int MaxTimeToRenderOneFrame
Field Value
Properties
Active
public static GraphicsContext Active { get; }
Property Value
IsActive
public bool IsActive { get; }
Property Value
ModelMatrix
public Matrix4x4 ModelMatrix { get; set; }
Property Value
ProjectionMatrix
public Matrix4x4 ProjectionMatrix { get; set; }
Property Value
ViewMatrix
public Matrix4x4 ViewMatrix { get; set; }
Property Value
Methods
BeginFrame(int, int)
public void BeginFrame(int width, int height)
Parameters
CreateContext(ResourceDepot)
public void CreateContext(ResourceDepot resourceDepot)
Parameters
resourceDepot
ResourceDepot
DestroyContext()
public void DestroyContext()
DrawElements(float, float, Material, DrawObject2D)
public void DrawElements(float x, float y, Material material, DrawObject2D drawObject2D)
Parameters
x
floaty
floatmaterial
MaterialdrawObject2D
DrawObject2D
DrawElements(Material, DrawObject2D)
public void DrawElements(Material material, DrawObject2D drawObject2D)
Parameters
material
MaterialdrawObject2D
DrawObject2D
GetOrLoadShader(string)
public Shader GetOrLoadShader(string shaderName)
Parameters
shaderName
string
Returns
GetTexture(string)
public OpenGLTexture GetTexture(string textureName)
Parameters
textureName
string
Returns
LoadTexture(ResourceDepot, string)
public OpenGLTexture LoadTexture(ResourceDepot resourceDepot, string name)
Parameters
resourceDepot
ResourceDepotname
string
Returns
LoadTextureUsing(OpenGLTexture, ResourceDepot, string)
public void LoadTextureUsing(OpenGLTexture texture, ResourceDepot resourceDepot, string name)
Parameters
texture
OpenGLTextureresourceDepot
ResourceDepotname
string
ResetScissor()
public void ResetScissor()
SetActive()
public void SetActive()
SetBlending(bool)
public void SetBlending(bool enable)
Parameters
enable
bool
SetScissor(ScissorTestInfo)
public void SetScissor(ScissorTestInfo scissorTestInfo)
Parameters
scissorTestInfo
ScissorTestInfo
SetTextureCoordArrayClientState(bool)
public void SetTextureCoordArrayClientState(bool enable)
Parameters
enable
bool
SetVertexArrayClientState(bool)
public void SetVertexArrayClientState(bool enable)
Parameters
enable
bool
SwapBuffers()
public void SwapBuffers()
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).