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

35 lines
746 B
C#
Raw Normal View History

using DotRecast.Core.Numerics;
2023-03-14 08:02:43 +03:00
namespace DotRecast.Recast.Demo.Draw;
2023-05-05 03:06:43 +03:00
public interface IOpenGLDraw
2023-03-16 19:48:49 +03:00
{
2023-05-05 02:44:48 +03:00
void Init();
2023-03-14 08:02:43 +03:00
2023-05-05 02:44:48 +03:00
void Clear();
2023-03-14 08:02:43 +03:00
2023-05-05 02:44:48 +03:00
void Begin(DebugDrawPrimitives prim, float size);
2023-03-14 08:02:43 +03:00
2023-05-05 02:44:48 +03:00
void End();
2023-03-14 08:02:43 +03:00
2023-05-05 02:44:48 +03:00
void Vertex(float x, float y, float z, int color);
2023-03-14 08:02:43 +03:00
2023-05-05 02:44:48 +03:00
void Vertex(float[] pos, int color);
void Vertex(RcVec3f pos, int color);
void Vertex(RcVec3f pos, int color, RcVec2f uv);
2023-03-14 08:02:43 +03:00
2023-05-05 02:44:48 +03:00
void Vertex(float x, float y, float z, int color, float u, float v);
2023-03-14 08:02:43 +03:00
2023-05-05 02:44:48 +03:00
void Fog(bool state);
2023-03-14 08:02:43 +03:00
2023-05-05 02:44:48 +03:00
void DepthMask(bool state);
2023-03-14 08:02:43 +03:00
2023-05-05 02:44:48 +03:00
void Texture(GLCheckerTexture g_tex, bool state);
2023-03-14 08:02:43 +03:00
2023-09-14 17:17:40 +03:00
void ProjectionMatrix(ref RcMatrix4x4f projectionMatrix);
2023-03-14 08:02:43 +03:00
2023-09-14 16:58:13 +03:00
void ViewMatrix(ref RcMatrix4x4f viewMatrix);
2023-03-14 08:02:43 +03:00
2023-05-05 02:44:48 +03:00
void Fog(float start, float end);
2023-03-16 19:48:49 +03:00
}