e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync/* Copyright (c) 2001, Stanford University
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync * All rights reserved
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync * See the file LICENSE.txt for information on redistributing this software.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncstatic void __handleMaterialData( GLenum face, GLenum pname, const GLfloat *params )
a0d1e40cc56a54314af0a1a4b5e13905ffd78393vboxsync unsigned int packet_length = sizeof( int ) + sizeof( face ) + sizeof( pname );
a0d1e40cc56a54314af0a1a4b5e13905ffd78393vboxsync __PackError(__LINE__, __FILE__, GL_INVALID_ENUM, "glMaterial(pname)");
a0d1e40cc56a54314af0a1a4b5e13905ffd78393vboxsync WRITE_DATA( sizeof( int ) + 8, GLfloat, params[0] );
a0d1e40cc56a54314af0a1a4b5e13905ffd78393vboxsync WRITE_DATA( sizeof( int ) + 12, GLfloat, params[1] );
a0d1e40cc56a54314af0a1a4b5e13905ffd78393vboxsync WRITE_DATA( sizeof( int ) + 16, GLfloat, params[2] );
a0d1e40cc56a54314af0a1a4b5e13905ffd78393vboxsync WRITE_DATA( sizeof( int ) + 20, GLfloat, params[3] );
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncvoid PACK_APIENTRY crPackMaterialfv(GLenum face, GLenum pname, const GLfloat *params)
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncvoid PACK_APIENTRY crPackMaterialiv(GLenum face, GLenum pname, const GLint *params)
a0d1e40cc56a54314af0a1a4b5e13905ffd78393vboxsync /* floats and ints are the same size, so the packing should be the same */