68
68
print '\t\tcrError( "packspu_%s doesn\'t work when there\'s no actual network involved!\\nTry using the simplequery SPU in your chain!" );' % func_name
70
70
if func_name in simple_funcs:
71
print '\tif (pname == GL_UNPACK_ALIGNMENT ||'
72
print '\t\tpname == GL_UNPACK_ROW_LENGTH ||'
73
print '\t\tpname == GL_UNPACK_SKIP_PIXELS ||'
74
print '\t\tpname == GL_UNPACK_LSB_FIRST ||'
75
print '\t\tpname == GL_UNPACK_SWAP_BYTES ||'
76
print '#ifdef CR_OPENGL_VERSION_1_2'
77
print '\t\tpname == GL_UNPACK_IMAGE_HEIGHT ||'
79
print '\t\tpname == GL_UNPACK_SKIP_ROWS ||'
80
print '\t\tpname == GL_PACK_ALIGNMENT ||'
81
print '\t\tpname == GL_PACK_ROW_LENGTH ||'
82
print '\t\tpname == GL_PACK_SKIP_PIXELS ||'
83
print '\t\tpname == GL_PACK_LSB_FIRST ||'
84
print '\t\tpname == GL_PACK_SWAP_BYTES ||'
85
print '#ifdef CR_OPENGL_VERSION_1_2'
86
print '\t\tpname == GL_PACK_IMAGE_HEIGHT ||'
88
print '\t\tpname == GL_PACK_SKIP_ROWS'
89
print '\t\t|| pname == GL_DRAW_BUFFER'
90
print '#ifdef CR_OPENGL_VERSION_1_3'
91
print '\t\t|| pname == GL_ACTIVE_TEXTURE'
93
print '#ifdef CR_ARB_multitexture'
94
print '\t\t|| pname == GL_ACTIVE_TEXTURE_ARB'
97
print '\t\t\tcrState%s( pname, params );' % func_name
72
if (pname == GL_UNPACK_ALIGNMENT
73
|| pname == GL_UNPACK_ROW_LENGTH
74
|| pname == GL_UNPACK_SKIP_PIXELS
75
|| pname == GL_UNPACK_LSB_FIRST
76
|| pname == GL_UNPACK_SWAP_BYTES
77
#ifdef CR_OPENGL_VERSION_1_2
78
|| pname == GL_UNPACK_IMAGE_HEIGHT
80
|| pname == GL_UNPACK_SKIP_ROWS
81
|| pname == GL_PACK_ALIGNMENT
82
|| pname == GL_PACK_ROW_LENGTH
83
|| pname == GL_PACK_SKIP_PIXELS
84
|| pname == GL_PACK_LSB_FIRST
85
|| pname == GL_PACK_SWAP_BYTES
86
#ifdef CR_OPENGL_VERSION_1_2
87
|| pname == GL_PACK_IMAGE_HEIGHT
89
|| pname == GL_PACK_SKIP_ROWS
90
|| pname == GL_DRAW_BUFFER
91
#ifdef CR_OPENGL_VERSION_1_3
92
|| pname == GL_ACTIVE_TEXTURE
94
#ifdef CR_ARB_multitexture
95
|| pname == GL_ACTIVE_TEXTURE_ARB
99
crState%s( pname, params );
100
103
params.append( ("&writeback", "foo", 0) )
101
104
print '\tif (pack_spu.swap)'