DotRecastNetSim/src/DotRecast.Recast.Demo/Draw/OpenGLDraw.cs

36 lines
748 B
C#
Raw Normal View History

2023-03-29 18:59:00 +03:00
using DotRecast.Core;
2023-03-14 08:02:43 +03:00
using Silk.NET.OpenGL;
namespace DotRecast.Recast.Demo.Draw;
2023-03-16 19:48:49 +03:00
public interface OpenGLDraw
{
2023-03-18 22:36:31 +03:00
void init();
2023-03-14 08:02:43 +03:00
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);
2023-03-29 18:59:00 +03:00
void vertex(Vector3f pos, int color);
2023-03-25 06:47:51 +03:00
2023-04-17 17:46:00 +03:00
void vertex(Vector3f pos, int color, Vector2f uv);
2023-03-14 08:02:43 +03:00
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);
2023-03-16 19:48:49 +03:00
}