forked from mirror/DotRecast
36 lines
686 B
C#
36 lines
686 B
C#
|
using Silk.NET.OpenGL;
|
||
|
|
||
|
namespace DotRecast.Recast.Demo.Draw;
|
||
|
|
||
|
public interface OpenGLDraw {
|
||
|
|
||
|
void init(GL gl);
|
||
|
|
||
|
void clear();
|
||
|
|
||
|
void begin(DebugDrawPrimitives prim, float size);
|
||
|
|
||
|
void end();
|
||
|
|
||
|
void vertex(float x, float y, float z, int color);
|
||
|
|
||
|
void vertex(float[] pos, int color);
|
||
|
|
||
|
void vertex(float[] pos, int color, float[] uv);
|
||
|
|
||
|
void vertex(float x, float y, float z, int color, float u, float v);
|
||
|
|
||
|
void fog(bool state);
|
||
|
|
||
|
void depthMask(bool state);
|
||
|
|
||
|
void texture(GLCheckerTexture g_tex, bool state);
|
||
|
|
||
|
void projectionMatrix(float[] projectionMatrix);
|
||
|
|
||
|
void viewMatrix(float[] viewMatrix);
|
||
|
|
||
|
void fog(float start, float end);
|
||
|
|
||
|
}
|