143 const GLint viewport[4])
148 (
const GLfloat (*)[4]) projMatrix);
179 const long rstride =
sizeof(smat[0]) /
sizeof(smat[0][0]);
180 const long cstride = 1;
195 const GLint viewport[4])
199 REAL xsize = 0.5 * (
REAL) (viewport[2]);
200 REAL ysize = 0.5 * (
REAL) (viewport[3]);
203 smat[0][0] = vmat[0][0] * xsize;
204 smat[1][0] = vmat[1][0] * xsize;
205 smat[2][0] = vmat[2][0] * xsize;
206 smat[3][0] = vmat[3][0] * xsize;
208 smat[0][1] = vmat[0][1] * ysize;
209 smat[1][1] = vmat[1][1] * ysize;
210 smat[2][1] = vmat[2][1] * ysize;
211 smat[3][1] = vmat[3][1] * ysize;
218 smat[0][3] = vmat[0][3];
219 smat[1][3] = vmat[1][3];
220 smat[2][3] = vmat[2][3];
221 smat[3][3] = vmat[3][3];
223 const long rstride =
sizeof(smat[0]) /
sizeof(smat[0][0]);
224 const long cstride = 1;
241 cmat[0][0] = vmat[0][0];
242 cmat[0][1] = vmat[0][1];
243 cmat[0][2] = vmat[0][2];
244 cmat[0][3] = vmat[0][3];
246 cmat[1][0] = vmat[1][0];
247 cmat[1][1] = vmat[1][1];
248 cmat[1][2] = vmat[1][2];
249 cmat[1][3] = vmat[1][3];
251 cmat[2][0] = vmat[2][0];
252 cmat[2][1] = vmat[2][1];
253 cmat[2][2] = vmat[2][2];
254 cmat[2][3] = vmat[2][3];
256 cmat[3][0] = vmat[3][0];
257 cmat[3][1] = vmat[3][1];
258 cmat[3][2] = vmat[3][2];
259 cmat[3][3] = vmat[3][3];
261 const long rstride =
sizeof(cmat[0]) /
sizeof(cmat[0][0]);
262 const long cstride = 1;
static void multmatrix4d(GLfloat n[4][4], const GLfloat left[4][4], const GLfloat right[4][4])
void setSamplingMatrixIdentity(void)
void loadCullingMatrix(GLfloat vmat[4][4])
errorCallbackType errorCallback
void useGLMatrices(const GLfloat modelMatrix[16], const GLfloat projMatrix[16], const GLint viewport[4])
static void grabGLMatrix(GLfloat vmat[4][4])
void postError(int which)
void loadGLMatrices(void)
static void transform4d(GLfloat A[4], GLfloat B[4], GLfloat mat[4][4])
void loadSamplingMatrix(const GLfloat vmat[4][4], const GLint viewport[4])
void set_domain_distance_v_rate(REAL v_rate)
void set_is_domain_distance_sampling(int flag)
void set_domain_distance_u_rate(REAL u_rate)
void defineMap(long, long, long)
void setnurbsproperty(long, INREAL)
#define GL_MAP1_TEXTURE_COORD_3
#define GL_MAP2_TEXTURE_COORD_2
#define GL_MAP1_TEXTURE_COORD_2
#define GL_MAP2_TEXTURE_COORD_4
#define GL_PROJECTION_MATRIX
#define GL_MAP1_TEXTURE_COORD_1
#define GL_MODELVIEW_MATRIX
#define GL_MAP1_TEXTURE_COORD_4
#define GL_MAP2_TEXTURE_COORD_1
#define GL_MAP2_TEXTURE_COORD_3
GLAPI void GLAPIENTRY glGetFloatv(GLenum pname, GLfloat *params)
GLAPI void GLAPIENTRY glGetIntegerv(GLenum pname, GLint *params)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define N_PIXEL_TOLERANCE
#define N_ERROR_TOLERANCE