pack_lists.c revision f3f69e0e8d6a713566e129aa3ab321b1e6b07fbc
/* 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"
#include "cr_mem.h"
{
switch( type )
{
case GL_BYTE:
case GL_UNSIGNED_BYTE:
case GL_2_BYTES:
return 1;
case GL_SHORT:
case GL_UNSIGNED_SHORT:
case GL_3_BYTES:
return 2;
case GL_INT:
case GL_UNSIGNED_INT:
case GL_FLOAT:
case GL_4_BYTES:
return 4;
default:
return -1;
}
}
{
unsigned char *data_ptr;
int packet_length;
if (num_bytes < 0)
{
"crPackCallLists(bad type)" );
return;
}
sizeof( n ) +
sizeof( type ) +
WRITE_DATA( 0, GLint, n );
crPackFree( data_ptr );
}
{
unsigned char *data_ptr;
(void) pc;
}
void PACK_APIENTRY crPackEndList( void )
{
unsigned char *data_ptr;
}