state.h revision e0e0c19eefceaf5d4ec40f9466b58a771f50e799
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync/* Copyright (c) 2001, Stanford University
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync * All rights reserved.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync * See the file LICENSE.txt for information on redistributing this software.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync#define GetCurrentContext() (CRContext *) crGetTSD(&__contextTSD)
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncextern void crStateTextureInitTextureObj (CRContext *ctx, CRTextureObj *tobj, GLuint name, GLenum target);
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncextern void crStateTextureInitTextureFormat( CRTextureLevel *tl, GLenum internalFormat );
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync/* Normally these functions would have been in cr_bufferobject.h but
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync * that led to a number of issues.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncvoid crStateBufferObjectDiff(CRBufferObjectBits *bb, CRbitvalue *bitID,
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncvoid crStateBufferObjectSwitch(CRBufferObjectBits *bb, CRbitvalue *bitID,
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync/* These would normally be in cr_client.h */
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncvoid crStateClientDiff(CRClientBits *cb, CRbitvalue *bitID, CRContext *from, CRContext *to);
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncvoid crStateClientSwitch(CRClientBits *cb, CRbitvalue *bitID, CRContext *from, CRContext *to);