state_lists.c revision e0e0c19eefceaf5d4ec40f9466b58a771f50e799
/* Copyright (c) 2001, Stanford University
* All rights reserved
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#include <stdio.h>
#include "cr_mem.h"
#include "state.h"
#include "state/cr_statetypes.h"
#include "state_internals.h"
{
/* nothing - dlists are in shared state */
}
{
l->mode = 0;
l->currentIndex = 0;
l->base = 0;
}
{
CRContext *g = GetCurrentContext();
CRListsState *l = &(g->lists);
if (g->current.inBeginEnd)
{
return;
}
if (list == 0)
{
return;
}
if (l->currentIndex)
{
/* already building a list */
return;
}
{
return;
}
FLUSH();
/* Must log that this key is used */
}
/* Need this???
crStateCurrentRecover();
*/
l->currentIndex = list;
}
void STATE_APIENTRY crStateEndList (void)
{
CRContext *g = GetCurrentContext();
CRListsState *l = &(g->lists);
if (g->current.inBeginEnd)
{
return;
}
if (!l->currentIndex)
{
return;
}
l->currentIndex = 0;
l->mode = 0;
}
{
CRContext *g = GetCurrentContext();
if (g->current.inBeginEnd)
{
return 0;
}
if (range < 0)
{
crStateError(__LINE__, __FILE__, GL_INVALID_VALUE, "Negative range passed to glGenLists: %d", range);
return 0;
}
return start;
}
{
CRContext *g = GetCurrentContext();
if (g->current.inBeginEnd)
{
return;
}
if (range < 0)
{
crStateError(__LINE__, __FILE__, GL_INVALID_VALUE, "Negative range passed to glDeleteLists: %d", range);
return;
}
crHashtableDeleteBlock(g->shared->dlistTable, list, range, crFree); /* call crFree to delete list data */
}
{
CRContext *g = GetCurrentContext();
if (g->current.inBeginEnd)
{
return GL_FALSE;
}
if (list == 0)
return GL_FALSE;
}
{
CRContext *g = GetCurrentContext();
CRListsState *l = &(g->lists);
if (g->current.inBeginEnd)
{
return;
}
}
void
{
unsigned int j;
for (j=0;j<CR_MAX_BITARRAY;j++)
{
}
}
}
void
{
unsigned int j;
for (j=0;j<CR_MAX_BITARRAY;j++)
{
}
}
}