pack_materials.c revision a0d1e40cc56a54314af0a1a4b5e13905ffd78393
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster/* Copyright (c) 2001, Stanford University
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster * All rights reserved
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster * See the file LICENSE.txt for information on redistributing this software.
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterstatic void __handleMaterialData( GLenum face, GLenum pname, const GLfloat *params )
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster unsigned int packet_length = sizeof( int ) + sizeof( face ) + sizeof( pname );
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster unsigned int params_length = 0;
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster unsigned char *data_ptr;
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster __PackError(__LINE__, __FILE__, GL_INVALID_ENUM, "glMaterial(pname)");
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster WRITE_DATA( sizeof( int ) + 4, GLenum, pname );
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster WRITE_DATA( sizeof( int ) + 8, GLfloat, params[0] );