2023-03-29 18:59:00 +03:00
|
|
|
using DotRecast.Core;
|
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);
|
2023-06-03 15:47:26 +03:00
|
|
|
void Vertex(RcVec3f pos, int color);
|
2023-08-19 09:31:51 +03:00
|
|
|
|
2023-06-03 15:47:26 +03:00
|
|
|
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
|
|
|
}
|