pack_materials.c revision 2f44080df90cb90c1e524d97c8e327b40298f3c6
/* 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 */
}