pack_fog.c revision 2f44080df90cb90c1e524d97c8e327b40298f3c6
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync/* Copyright (c) 2001, Stanford University
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync * All rights reserved
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync * See the file LICENSE.txt for information on redistributing this software.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncstatic GLboolean __handleFogData( GLenum pname, const GLfloat *params )
a0d1e40cc56a54314af0a1a4b5e13905ffd78393vboxsync int packet_length = sizeof( int ) + sizeof( pname );
a0d1e40cc56a54314af0a1a4b5e13905ffd78393vboxsync unsigned char *data_ptr;
a0d1e40cc56a54314af0a1a4b5e13905ffd78393vboxsync sprintf(msg, "Invalid pname in Fog: %d", (int) pname );
a0d1e40cc56a54314af0a1a4b5e13905ffd78393vboxsync __PackError( __LINE__, __FILE__, GL_INVALID_ENUM, msg);
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncvoid PACK_APIENTRY crPackFogfv(GLenum pname, const GLfloat *params)
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncvoid PACK_APIENTRY crPackFogiv(GLenum pname, const GLint *params)
a0d1e40cc56a54314af0a1a4b5e13905ffd78393vboxsync /* floats and ints are the same size, so the packing should be the same */
a0d1e40cc56a54314af0a1a4b5e13905ffd78393vboxsync if (__handleFogData( pname, (const GLfloat *) params ))