pack_materials.c revision e0e0c19eefceaf5d4ec40f9466b58a771f50e799
/* Copyright (c) 2001, Stanford University
* All rights reserved
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#include "packer.h"
#include "cr_error.h"
{
unsigned int params_length = 0;
unsigned char *data_ptr;
switch( pname )
{
case GL_AMBIENT:
case GL_DIFFUSE:
case GL_SPECULAR:
case GL_EMISSION:
case GL_AMBIENT_AND_DIFFUSE:
break;
case GL_COLOR_INDEXES:
break;
case GL_SHININESS:
params_length = sizeof( *params );
break;
default:
return;
}
WRITE_DATA( 0, int, packet_length );
if (params_length > sizeof( *params ))
{
}
{
}
}
{
}
{
/* floats and ints are the same size, so the packing should be the same */
}