Table of Contents

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

int

MaxTimeToRenderOneFrame

public readonly int MaxTimeToRenderOneFrame

Field Value

int

Properties

Active

public static GraphicsContext Active { get; }

Property Value

GraphicsContext

IsActive

public bool IsActive { get; }

Property Value

bool

ModelMatrix

public Matrix4x4 ModelMatrix { get; set; }

Property Value

Matrix4x4

ProjectionMatrix

public Matrix4x4 ProjectionMatrix { get; set; }

Property Value

Matrix4x4

ViewMatrix

public Matrix4x4 ViewMatrix { get; set; }

Property Value

Matrix4x4

Methods

BeginFrame(int, int)

public void BeginFrame(int width, int height)

Parameters

width int
height int

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 float
y float
material Material
drawObject2D DrawObject2D

DrawElements(Material, DrawObject2D)

public void DrawElements(Material material, DrawObject2D drawObject2D)

Parameters

material Material
drawObject2D DrawObject2D

GetOrLoadShader(string)

public Shader GetOrLoadShader(string shaderName)

Parameters

shaderName string

Returns

Shader

GetTexture(string)

public OpenGLTexture GetTexture(string textureName)

Parameters

textureName string

Returns

OpenGLTexture

LoadTexture(ResourceDepot, string)

public OpenGLTexture LoadTexture(ResourceDepot resourceDepot, string name)

Parameters

resourceDepot ResourceDepot
name string

Returns

OpenGLTexture

LoadTextureUsing(OpenGLTexture, ResourceDepot, string)

public void LoadTextureUsing(OpenGLTexture texture, ResourceDepot resourceDepot, string name)

Parameters

texture OpenGLTexture
resourceDepot ResourceDepot
name 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).