blob: e9accfa29dcd9fc22cb8d18b742512bb4f0cc0fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
/*
* $RCSfile$
*
* Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved.
*
* Use is subject to license terms.
*
* $Revision$
* $Date$
* $State$
*/
#ifndef _Java3D_GLSLInfo_h_
#define _Java3D_GLSLInfo_h_
#include "gldefs.h"
/* Structure used to hold GLSL context information; stored in ctxInfo */
struct GLSLCtxInfoRec {
int vertexAttrOffset;
PFNGLATTACHOBJECTARBPROC pfnglAttachObjectARB;
PFNGLCOMPILESHADERARBPROC pfnglCompileShaderARB;
PFNGLCREATEPROGRAMOBJECTARBPROC pfnglCreateProgramObjectARB;
PFNGLCREATESHADEROBJECTARBPROC pfnglCreateShaderObjectARB;
PFNGLDELETEOBJECTARBPROC pfnglglDeleteObjectARB;
PFNGLGETINFOLOGARBPROC pfnglGetInfoLogARB;
PFNGLGETOBJECTPARAMETERIVARBPROC pfnglGetObjectParameterivARB;
PFNGLLINKPROGRAMARBPROC pfnglLinkProgramARB;
PFNGLSHADERSOURCEARBPROC pfnglShaderSourceARB;
PFNGLUSEPROGRAMOBJECTARBPROC pfnglUseProgramObjectARB;
PFNGLGETUNIFORMLOCATIONARBPROC pfnglGetUniformLocationARB;
PFNGLGETATTRIBLOCATIONARBPROC pfnglGetAttribLocationARB;
PFNGLBINDATTRIBLOCATIONARBPROC pfnglBindAttribLocationARB;
PFNGLVERTEXATTRIB1FVARBPROC pfnglVertexAttrib1fvARB;
PFNGLVERTEXATTRIB2FVARBPROC pfnglVertexAttrib2fvARB;
PFNGLVERTEXATTRIB3FVARBPROC pfnglVertexAttrib3fvARB;
PFNGLVERTEXATTRIB4FVARBPROC pfnglVertexAttrib4fvARB;
PFNGLVERTEXATTRIBPOINTERARBPROC pfnglVertexAttribPointerARB;
PFNGLENABLEVERTEXATTRIBARRAYARBPROC pfnglEnableVertexAttribArrayARB;
PFNGLDISABLEVERTEXATTRIBARRAYARBPROC pfnglDisableVertexAttribArrayARB;
PFNGLGETACTIVEUNIFORMARBPROC pfnglGetActiveUniformARB;
PFNGLUNIFORM1IARBPROC pfnglUniform1iARB;
PFNGLUNIFORM1FARBPROC pfnglUniform1fARB;
PFNGLUNIFORM2IARBPROC pfnglUniform2iARB;
PFNGLUNIFORM2FARBPROC pfnglUniform2fARB;
PFNGLUNIFORM3IARBPROC pfnglUniform3iARB;
PFNGLUNIFORM3FARBPROC pfnglUniform3fARB;
PFNGLUNIFORM4IARBPROC pfnglUniform4iARB;
PFNGLUNIFORM4FARBPROC pfnglUniform4fARB;
PFNGLUNIFORM1IVARBPROC pfnglUniform1ivARB;
PFNGLUNIFORM1FVARBPROC pfnglUniform1fvARB;
PFNGLUNIFORM2IVARBPROC pfnglUniform2ivARB;
PFNGLUNIFORM2FVARBPROC pfnglUniform2fvARB;
PFNGLUNIFORM3IVARBPROC pfnglUniform3ivARB;
PFNGLUNIFORM3FVARBPROC pfnglUniform3fvARB;
PFNGLUNIFORM4IVARBPROC pfnglUniform4ivARB;
PFNGLUNIFORM4FVARBPROC pfnglUniform4fvARB;
PFNGLUNIFORMMATRIX3FVARBPROC pfnglUniformMatrix3fvARB;
PFNGLUNIFORMMATRIX4FVARBPROC pfnglUniformMatrix4fvARB;
};
#endif /* _Java3D_GLSLInfo_h_ */
|