summaryrefslogtreecommitdiff
path: root/src/renderergl2/tr_local.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderergl2/tr_local.h')
-rw-r--r--src/renderergl2/tr_local.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/renderergl2/tr_local.h b/src/renderergl2/tr_local.h
index 6f56f139..b56fdf0d 100644
--- a/src/renderergl2/tr_local.h
+++ b/src/renderergl2/tr_local.h
@@ -1004,12 +1004,6 @@ typedef struct
#define srfVert_t_cleared(x) srfVert_t (x) = {{0, 0, 0}, {0, 0}, {0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0, 0}}
#endif
-typedef struct
-{
- int indexes[3];
- int neighbors[3];
-} srfTriangle_t;
-
// srfBspSurface_t covers SF_GRID, SF_TRIANGLES, SF_POLY, and SF_VBO_MESH
typedef struct srfBspSurface_s
{
@@ -1025,9 +1019,9 @@ typedef struct srfBspSurface_s
float cullRadius;
cplane_t cullPlane;
- // triangle definitions
- int numTriangles;
- srfTriangle_t *triangles;
+ // indexes
+ int numIndexes;
+ glIndex_t *indexes;
// vertexes
int numVerts;
@@ -1327,8 +1321,8 @@ typedef struct mdvSurface_s
mdvVertex_t *verts;
mdvSt_t *st;
- int numTriangles;
- srfTriangle_t *triangles;
+ int numIndexes;
+ glIndex_t *indexes;
struct mdvModel_s *model;
} mdvSurface_t;
@@ -2278,7 +2272,7 @@ VBO_t *R_CreateVBO(const char *name, byte * vertexes, int vertexesSize,
VBO_t *R_CreateVBO2(const char *name, int numVertexes, srfVert_t * vertexes, uint32_t stateBits, vboUsage_t usage);
IBO_t *R_CreateIBO(const char *name, byte * indexes, int indexesSize, vboUsage_t usage);
-IBO_t *R_CreateIBO2(const char *name, int numTriangles, srfTriangle_t * triangles, vboUsage_t usage);
+IBO_t *R_CreateIBO2(const char *name, int numIndexes, glIndex_t * inIndexes, vboUsage_t usage);
void R_BindVBO(VBO_t * vbo);
void R_BindNullVBO(void);