X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=gl_backend.h;h=b36225229fa60536b730c846980de4e085cd3a51;hb=5c77268d0a473dfcf784d69343a3ddabcbd5ab33;hp=0c66d2f1b3ba11216e55517ddaa7b2626ef65f94;hpb=f8e7835d4c8e5763be8a739809f6339800e26ca8;p=xonotic%2Fdarkplaces.git diff --git a/gl_backend.h b/gl_backend.h index 0c66d2f1..b3622522 100644 --- a/gl_backend.h +++ b/gl_backend.h @@ -2,7 +2,8 @@ #ifndef GL_BACKEND_H #define GL_BACKEND_H -#define MAX_TEXTUREUNITS 16 +// how many texture units to track state on (backendunits/backendimageunits/backendarrayunits are limited to this value) +#define MAX_TEXTUREUNITS 64 #define POLYGONELEMENTS_MAXPOINTS 258 extern int polygonelements[(POLYGONELEMENTS_MAXPOINTS-2)*3]; @@ -10,7 +11,7 @@ extern int polygonelements[(POLYGONELEMENTS_MAXPOINTS-2)*3]; extern int quadelements[QUADELEMENTS_MAXQUADS*6]; void GL_SetupView_Orientation_Identity(void); -void GL_SetupView_Orientation_FromEntity(matrix4x4_t *matrix); +void GL_SetupView_Orientation_FromEntity(const matrix4x4_t *matrix); void GL_SetupView_Mode_Perspective(double frustumx, double frustumy, double zNear, double zFar); void GL_SetupView_Mode_PerspectiveInfiniteFarClip(double frustumx, double frustumy, double zNear); void GL_SetupView_Mode_Ortho(double x1, double y1, double x2, double y2, double zNear, double zFar);