e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# Copyright (c) 2001, Stanford University
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# All rights reserved.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# See the file LICENSE.txt for information on redistributing this software.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# This script generates the pack_current.c file.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync/* DO NOT EDIT - THIS FILE GENERATED BY THE pack_current.py SCRIPT */
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync#include <memory.h>
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync#include "packer.h"
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync#include <stdio.h>
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncvoid crPackOffsetCurrentPointers( int offset )
2f44080df90cb90c1e524d97c8e327b40298f3c6vboxsync CR_GET_PACKER_CONTEXT(pc);
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync GLnormal_p *normal = &(pc->current.c.normal);
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync GLcolor_p *color = &(pc->current.c.color);
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync GLsecondarycolor_p *secondaryColor = &(pc->current.c.secondaryColor);
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync GLtexcoord_p *texCoord = &(pc->current.c.texCoord);
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync GLindex_p *index = &(pc->current.c.index);
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync GLedgeflag_p *edgeFlag = &(pc->current.c.edgeFlag);
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync GLvertexattrib_p *vertexAttrib = &(pc->current.c.vertexAttrib);
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync GLfogcoord_p *fogCoord = &(pc->current.c.fogCoord);
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync print '\tfor (i = 0 ; i < %s ; i++)' % current_fns[k]['array']
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync print '\t{'
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync print '\t}'
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncvoid crPackNullCurrentPointers( void )
2f44080df90cb90c1e524d97c8e327b40298f3c6vboxsync CR_GET_PACKER_CONTEXT(pc);
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync CRCurrentStateAttr *c = &(pc->current.c);
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncprint '\tmemset ( c, 0, sizeof (CRCurrentStateAttr));'