예제 #1
0
 public RenderSystem()
 {
     Renderer = RendererAPI.GetAPI();
     Camera   = new OrthographicCamera(-1.6f, 1.6f, -0.9f, 0.9f);
 }
예제 #2
0
 public static void SetClearColor(float red, float green, float blue, float alpha)
 {
     RendererAPI.GetAPI().SetClearColor(red, green, blue, alpha);
 }
예제 #3
0
 public static void Clear()
 {
     RendererAPI.GetAPI().Clear();
 }
예제 #4
0
 public static void DrawIndexed(VertexArray vertexArray)
 {
     RendererAPI.GetAPI().DrawIndexed(vertexArray);
 }