mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
*** empty log message ***
This commit is contained in:
parent
a9dc84babd
commit
27af61d92f
26
panda/metalibs/pandacr/Sources.pp
Normal file
26
panda/metalibs/pandacr/Sources.pp
Normal file
@ -0,0 +1,26 @@
|
||||
// DIR_TYPE "metalib" indicates we are building a shared library that
|
||||
// consists mostly of references to other shared libraries. Under
|
||||
// Windows, this directly produces a DLL (as opposed to the regular
|
||||
// src libraries, which don't produce anything but a pile of OBJ files
|
||||
// under Windows).
|
||||
|
||||
#define DIR_TYPE metalib
|
||||
#define BUILDING_DLL BUILDING_PANDACR
|
||||
#define DIRECTORY_IF_CHROMIUM yes
|
||||
|
||||
//#define USE_CHROMIUM yes
|
||||
|
||||
#define COMPONENT_LIBS \
|
||||
crgsg wcrdisplay
|
||||
|
||||
#define LOCAL_LIBS gsgbase display express
|
||||
#define OTHER_LIBS dtoolconfig dtool
|
||||
//#define WIN_SYS_LIBS $[WIN_SYS_LIBS]
|
||||
|
||||
#begin metalib_target
|
||||
#define TARGET pandacr
|
||||
|
||||
#define SOURCES pandacr.cxx pandacr.h
|
||||
#define INSTALL_HEADERS pandacr.h
|
||||
|
||||
#end metalib_target
|
27
panda/metalibs/pandacr/pandacr.cxx
Normal file
27
panda/metalibs/pandacr/pandacr.cxx
Normal file
@ -0,0 +1,27 @@
|
||||
// Filename: pandacr.cxx
|
||||
// Created by: skyler, baseed on pandagl
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "pandacr.h"
|
||||
|
||||
#include <config_crgsg.h>
|
||||
#ifdef HAVE_WCR
|
||||
#include <config_wcrdisplay.h>
|
||||
#endif
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: init_libpandacr
|
||||
// Description: Initializes the library. This must be called at
|
||||
// least once before any of the functions or classes in
|
||||
// this library can be used. Normally it will be
|
||||
// called by the static initializers and need not be
|
||||
// called explicitly, but special cases exist.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void
|
||||
init_libpandacr() {
|
||||
init_libcrgsg();
|
||||
#ifdef HAVE_WCR
|
||||
init_libwcrdisplay();
|
||||
#endif
|
||||
}
|
14
panda/metalibs/pandacr/pandacr.h
Normal file
14
panda/metalibs/pandacr/pandacr.h
Normal file
@ -0,0 +1,14 @@
|
||||
// Filename: pandacr.h
|
||||
// Created by: skyler, baseed on pandagl
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef PANDACR_H
|
||||
#define PANDACR_H
|
||||
|
||||
#include <pandabase.h>
|
||||
|
||||
EXPCL_PANDACR void init_libpandacr();
|
||||
|
||||
#endif
|
||||
|
30
panda/src/crgsg/Sources.pp
Normal file
30
panda/src/crgsg/Sources.pp
Normal file
@ -0,0 +1,30 @@
|
||||
#define DIRECTORY_IF_CHROMIUM yes
|
||||
|
||||
#define OTHER_LIBS interrogatedb:c dconfig:c dtoolconfig:m \
|
||||
dtoolutil:c dtoolbase:c dtool:m
|
||||
#define USE_CHROMIUM yes
|
||||
|
||||
#begin lib_target
|
||||
#define TARGET crgsg
|
||||
#define LOCAL_LIBS \
|
||||
pandabase cull gsgmisc gsgbase gobj sgattrib sgraphutil graph display light \
|
||||
putil linmath sgraph mathutil pnmimage
|
||||
|
||||
#define COMBINED_SOURCES $[TARGET]_composite1.cxx
|
||||
|
||||
#define SOURCES \
|
||||
crGraphicsStateGuardian.cxx \
|
||||
config_crgsg.h crGraphicsStateGuardian.I \
|
||||
crGraphicsStateGuardian.h crSavedFrameBuffer.I \
|
||||
crSavedFrameBuffer.h crTextureContext.I crext.h \
|
||||
crGeomNodeContext.I crGeomNodeContext.h crTextureContext.h
|
||||
|
||||
#define INCLUDED_SOURCES \
|
||||
config_crgsg.cxx crSavedFrameBuffer.cxx \
|
||||
crGeomNodeContext.cxx crTextureContext.cxx
|
||||
|
||||
#define INSTALL_HEADERS \
|
||||
config_crgsg.h crGraphicsStateGuardian.I crGraphicsStateGuardian.h
|
||||
|
||||
#end lib_target
|
||||
|
7
panda/src/crgsg/clean
Executable file
7
panda/src/crgsg/clean
Executable file
@ -0,0 +1,7 @@
|
||||
#!bash
|
||||
|
||||
rm *.I
|
||||
rm *.cxx
|
||||
rm *.h
|
||||
rm pp.dep
|
||||
rm Makefile
|
127
panda/src/crgsg/config_crgsg.cxx
Normal file
127
panda/src/crgsg/config_crgsg.cxx
Normal file
@ -0,0 +1,127 @@
|
||||
// Filename: config_crgsg.cxx
|
||||
// Created by: drose (06Oct99)
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// PANDA 3D SOFTWARE
|
||||
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
|
||||
//
|
||||
// All use of this software is subject to the terms of the Panda 3d
|
||||
// Software license. You should have received a copy of this license
|
||||
// along with this source code; you will also find a current copy of
|
||||
// the license at http://www.panda3d.org/license.txt .
|
||||
//
|
||||
// To contact the maintainers of this program write to
|
||||
// panda3d@yahoogroups.com .
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "config_crgsg.h"
|
||||
#include "crGraphicsStateGuardian.h"
|
||||
#include "crSavedFrameBuffer.h"
|
||||
#include "crTextureContext.h"
|
||||
#include "crGeomNodeContext.h"
|
||||
|
||||
#include <dconfig.h>
|
||||
|
||||
Configure(config_crgsg);
|
||||
NotifyCategoryDef(crgsg, ":display:gsg");
|
||||
|
||||
// Configure this variable true to cause the CRGSG to show each
|
||||
// transform space it renders by drawing a little unit axis. This
|
||||
// cannot be enabled when the player is compiled in NDEBUG mode.
|
||||
bool cr_show_transforms = config_crgsg.GetBool("cr-show-transforms", false);
|
||||
|
||||
// Configure this true to chromium.Hint the textures into the cheapest
|
||||
// possible mode.
|
||||
bool cr_cheap_textures = config_crgsg.GetBool("cr-cheap-textures", false);
|
||||
|
||||
// Configure this true to perform a cull traversal over the geometry
|
||||
// by default, false otherwise. The cull traversal provides support
|
||||
// for state-sorting, z-sorting, and binning.
|
||||
bool cr_cull_traversal = config_crgsg.GetBool("cr-cull-traversal", true);
|
||||
|
||||
// Configure this true to disable the use of mipmapping in the
|
||||
// renderer.
|
||||
bool cr_ignore_mipmaps = config_crgsg.GetBool("cr-ignore-mipmaps", false);
|
||||
|
||||
// Configure this true to enable full trilinear mipmapping on every
|
||||
// texture, whether it asks for it or not.
|
||||
bool cr_force_mipmaps = config_crgsg.GetBool("cr-force-mipmaps", false);
|
||||
|
||||
// Configure this true to cause mipmaps to be rendered with phony
|
||||
// colors, using mipmap_level_*.rgb if they are available.
|
||||
bool cr_show_mipmaps = config_crgsg.GetBool("cr-show-mipmaps", false);
|
||||
|
||||
// Configure this true to cause the generated mipmap images to be
|
||||
// written out to image files on the disk as they are generated.
|
||||
bool cr_save_mipmaps = config_crgsg.GetBool("cr-save-mipmaps", false);
|
||||
|
||||
// Configure this true to cause all lighting normals to automatically
|
||||
// be normalized by the graphics hardware before rendering. This is
|
||||
// necessary if you intend to render things under scale transforms and
|
||||
// expect lighting to work correctly. Maybe one day there will be
|
||||
// another way to set this at runtime, instead of only as a configure
|
||||
// variable.
|
||||
bool cr_auto_normalize_lighting = config_crgsg.GetBool("auto-normalize-lighting", false);
|
||||
|
||||
// Configure this true to indicate the current version of GL fully
|
||||
// supports textures with B, G, R ordering; false if it only supports
|
||||
// R, G, B. false will always work, but true might be faster if the
|
||||
// implementation supports it.
|
||||
#ifdef GL_BGR
|
||||
bool cr_supports_bgr = config_crgsg.GetBool("cr-supports-bgr", false);
|
||||
#else
|
||||
// If it's not even defined, we can't use it.
|
||||
bool cr_supports_bgr = false;
|
||||
#endif // GL_BGR
|
||||
|
||||
CRDecalType cr_decal_type = GDT_offset;
|
||||
|
||||
static CRDecalType
|
||||
parse_decal_type(const string &type) {
|
||||
if (type == "mask") {
|
||||
return GDT_mask;
|
||||
} else if (type == "blend") {
|
||||
return GDT_blend;
|
||||
} else if (type == "offset") {
|
||||
return GDT_offset;
|
||||
}
|
||||
crgsg_cat.error() << "Invalid cr-decal-type: " << type << "\n";
|
||||
return GDT_offset;
|
||||
}
|
||||
|
||||
ConfigureFn(config_crgsg) {
|
||||
init_libcrgsg();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: init_libcrgsg
|
||||
// Description: Initializes the library. This must be called at
|
||||
// least once before any of the functions or classes in
|
||||
// this library can be used. Normally it will be
|
||||
// called by the static initializers and need not be
|
||||
// called explicitly, but special cases exist.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void
|
||||
init_libcrgsg() {
|
||||
static bool initialized = false;
|
||||
if (initialized) {
|
||||
return;
|
||||
}
|
||||
initialized = true;
|
||||
|
||||
string decal_type = config_crgsg.GetString("cr-decal-type", "");
|
||||
if (!decal_type.empty()) {
|
||||
cr_decal_type = parse_decal_type(decal_type);
|
||||
}
|
||||
|
||||
CRGraphicsStateGuardian::init_type();
|
||||
CRSavedFrameBuffer::init_type();
|
||||
CRTextureContext::init_type();
|
||||
CRGeomNodeContext::init_type();
|
||||
|
||||
GraphicsStateGuardian::get_factory().register_factory
|
||||
(CRGraphicsStateGuardian::get_class_type(),
|
||||
CRGraphicsStateGuardian::make_GlGraphicsStateGuardian);
|
||||
}
|
48
panda/src/crgsg/config_crgsg.h
Normal file
48
panda/src/crgsg/config_crgsg.h
Normal file
@ -0,0 +1,48 @@
|
||||
// Filename: config_crgsg.h
|
||||
// Created by: drose (06Oct99)
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// PANDA 3D SOFTWARE
|
||||
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
|
||||
//
|
||||
// All use of this software is subject to the terms of the Panda 3d
|
||||
// Software license. You should have received a copy of this license
|
||||
// along with this source code; you will also find a current copy of
|
||||
// the license at http://www.panda3d.org/license.txt .
|
||||
//
|
||||
// To contact the maintainers of this program write to
|
||||
// panda3d@yahoogroups.com .
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef CONFIG_GLGSG_H
|
||||
#define CONFIG_GLGSG_H
|
||||
|
||||
#include <pandabase.h>
|
||||
#include <notifyCategoryProxy.h>
|
||||
|
||||
NotifyCategoryDecl(crgsg, EXPCL_PANDACR, EXPTP_PANDACR);
|
||||
|
||||
extern bool cr_show_transforms;
|
||||
extern bool cr_cheap_textures;
|
||||
extern bool cr_cull_traversal;
|
||||
extern bool cr_ignore_mipmaps;
|
||||
extern bool cr_force_mipmaps;
|
||||
extern bool cr_show_mipmaps;
|
||||
extern bool cr_save_mipmaps;
|
||||
extern bool cr_auto_normalize_lighting;
|
||||
extern bool cr_supports_bgr;
|
||||
|
||||
// Ways to implement decals.
|
||||
enum CRDecalType {
|
||||
GDT_mask, // GL 1.0 style, involving three steps
|
||||
GDT_blend, // As above, but slower; a hack for broken nVidia driver
|
||||
GDT_offset // The fastest, using GL 1.1 style chromium.PolygonOffset
|
||||
};
|
||||
extern CRDecalType cr_decal_type;
|
||||
|
||||
|
||||
extern EXPCL_PANDACR void init_libcrgsg();
|
||||
|
||||
#endif
|
31
panda/src/crgsg/crGeomNodeContext.I
Normal file
31
panda/src/crgsg/crGeomNodeContext.I
Normal file
@ -0,0 +1,31 @@
|
||||
// Filename: chromium.GeomNodeContext.I
|
||||
// Created by: drose (12Jun01)
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// PANDA 3D SOFTWARE
|
||||
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
|
||||
//
|
||||
// All use of this software is subject to the terms of the Panda 3d
|
||||
// Software license. You should have received a copy of this license
|
||||
// along with this source code; you will also find a current copy of
|
||||
// the license at http://www.panda3d.org/license.txt .
|
||||
//
|
||||
// To contact the maintainers of this program write to
|
||||
// panda3d@yahoogroups.com .
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: CRGeomNodeContext::Constructor
|
||||
// Access: Public
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE CRGeomNodeContext::
|
||||
CRGeomNodeContext(GeomNode *node) :
|
||||
GeomNodeContext(node)
|
||||
{
|
||||
_index = 0;
|
||||
DO_PSTATS_STUFF(_num_verts = 0;)
|
||||
}
|
21
panda/src/crgsg/crGeomNodeContext.cxx
Normal file
21
panda/src/crgsg/crGeomNodeContext.cxx
Normal file
@ -0,0 +1,21 @@
|
||||
// Filename: chromium.GeomNodeContext.cxx
|
||||
// Created by: drose (12Jun01)
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// PANDA 3D SOFTWARE
|
||||
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
|
||||
//
|
||||
// All use of this software is subject to the terms of the Panda 3d
|
||||
// Software license. You should have received a copy of this license
|
||||
// along with this source code; you will also find a current copy of
|
||||
// the license at http://www.panda3d.org/license.txt .
|
||||
//
|
||||
// To contact the maintainers of this program write to
|
||||
// panda3d@yahoogroups.com .
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "crGeomNodeContext.h"
|
||||
|
||||
TypeHandle CRGeomNodeContext::_type_handle;
|
89
panda/src/crgsg/crGeomNodeContext.h
Normal file
89
panda/src/crgsg/crGeomNodeContext.h
Normal file
@ -0,0 +1,89 @@
|
||||
// Filename: chromium.GeomNodeContext.h
|
||||
// Created by: drose (12Jun01)
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// PANDA 3D SOFTWARE
|
||||
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
|
||||
//
|
||||
// All use of this software is subject to the terms of the Panda 3d
|
||||
// Software license. You should have received a copy of this license
|
||||
// along with this source code; you will also find a current copy of
|
||||
// the license at http://www.panda3d.org/license.txt .
|
||||
//
|
||||
// To contact the maintainers of this program write to
|
||||
// panda3d@yahoogroups.com .
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef CRGEOMNODECONTEXT_H
|
||||
#define CRGEOMNODECONTEXT_H
|
||||
|
||||
#include <pandabase.h>
|
||||
|
||||
#ifdef WIN32_VC
|
||||
// Must include windows.h before gl.h on NT
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#undef WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
|
||||
|
||||
#include <GL/gl.h>
|
||||
// Chromium specific
|
||||
#ifdef WIN32_VC // [
|
||||
#define WINDOWS 1
|
||||
#endif //]
|
||||
#include "cr_glwrapper.h"
|
||||
#include "cr_applications.h"
|
||||
#include "cr_spu.h"
|
||||
///////#include "cr_glstate.h"
|
||||
extern SPUDispatchTable chromium;
|
||||
|
||||
#include <geomNodeContext.h>
|
||||
#include <geomNode.h>
|
||||
#include "pvector.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Class : CRGeomNodeContext
|
||||
// Description :
|
||||
////////////////////////////////////////////////////////////////////
|
||||
class EXPCL_PANDACR CRGeomNodeContext : public GeomNodeContext {
|
||||
public:
|
||||
INLINE CRGeomNodeContext(GeomNode *node);
|
||||
|
||||
// The GL display list index that draws the contents of this
|
||||
// GeomNode.
|
||||
GLuint _index;
|
||||
|
||||
// A list of the dynamic Geoms within the GeomNode; these aren't
|
||||
// part of the above display list.
|
||||
typedef pvector<PT(dDrawable) > Geoms;
|
||||
Geoms _dynamic_geoms;
|
||||
|
||||
// The number of vertices represented by the display list. This is
|
||||
// strictly for the benefit of PStats reporting.
|
||||
DO_PSTATS_STUFF(int _num_verts;)
|
||||
|
||||
public:
|
||||
static TypeHandle get_class_type() {
|
||||
return _type_handle;
|
||||
}
|
||||
static void init_type() {
|
||||
GeomNodeContext::init_type();
|
||||
register_type(_type_handle, "CRGeomNodeContext",
|
||||
GeomNodeContext::get_class_type());
|
||||
}
|
||||
virtual TypeHandle get_type() const {
|
||||
return get_class_type();
|
||||
}
|
||||
virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
|
||||
|
||||
private:
|
||||
static TypeHandle _type_handle;
|
||||
};
|
||||
|
||||
#include "crGeomNodeContext.I"
|
||||
|
||||
#endif
|
||||
|
1200
panda/src/crgsg/crGraphicsStateGuardian.I
Normal file
1200
panda/src/crgsg/crGraphicsStateGuardian.I
Normal file
File diff suppressed because it is too large
Load Diff
6125
panda/src/crgsg/crGraphicsStateGuardian.cxx
Normal file
6125
panda/src/crgsg/crGraphicsStateGuardian.cxx
Normal file
File diff suppressed because it is too large
Load Diff
404
panda/src/crgsg/crGraphicsStateGuardian.h
Normal file
404
panda/src/crgsg/crGraphicsStateGuardian.h
Normal file
@ -0,0 +1,404 @@
|
||||
// Filename: chromium.GraphicsStateGuardian.h
|
||||
// Created by: drose (02Feb99)
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// PANDA 3D SOFTWARE
|
||||
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
|
||||
//
|
||||
// All use of this software is subject to the terms of the Panda 3d
|
||||
// Software license. You should have received a copy of this license
|
||||
// along with this source code; you will also find a current copy of
|
||||
// the license at http://www.panda3d.org/license.txt .
|
||||
//
|
||||
// To contact the maintainers of this program write to
|
||||
// panda3d@yahoogroups.com .
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef CRGRAPHICSSTATEGUARDIAN_H
|
||||
#define CRGRAPHICSSTATEGUARDIAN_H
|
||||
|
||||
//#define GSG_VERBOSE
|
||||
|
||||
#include "pandabase.h"
|
||||
|
||||
#include "graphicsStateGuardian.h"
|
||||
#include "geomprimitives.h"
|
||||
#include "texture.h"
|
||||
#include "pixelBuffer.h"
|
||||
#include "displayRegion.h"
|
||||
#include "material.h"
|
||||
#include "textureApplyProperty.h"
|
||||
#include "depthTestProperty.h"
|
||||
#include "stencilProperty.h"
|
||||
#include "fog.h"
|
||||
#include "pt_Light.h"
|
||||
#include "depthTestAttrib.h"
|
||||
#include "textureApplyAttrib.h"
|
||||
#include "pointerToArray.h"
|
||||
|
||||
#ifdef WIN32_VC
|
||||
// Must include windows.h before gl.h on NT
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#undef WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
|
||||
|
||||
#include <GL/gl.h>
|
||||
// Chromium specific
|
||||
#ifdef WIN32_VC // [
|
||||
#define WINDOWS 1
|
||||
#endif //]
|
||||
#include "cr_glwrapper.h"
|
||||
#include "cr_applications.h"
|
||||
#include "cr_spu.h"
|
||||
///////#include "cr_glstate.h"
|
||||
extern SPUDispatchTable chromium;
|
||||
|
||||
|
||||
|
||||
class PlaneNode;
|
||||
class Light;
|
||||
|
||||
#ifdef GSG_VERBOSE
|
||||
ostream &output_cr_enum(ostream &out, GLenum v);
|
||||
INLINE ostream &operator << (ostream &out, GLenum v) {
|
||||
return output_cr_enum(out, v);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Class : CRGraphicsStateGuardian
|
||||
// Description : A GraphicsStateGuardian specialized for rendering
|
||||
// into OpenGL contexts. There should be no GL calls
|
||||
// outside of this object.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
class EXPCL_PANDACR CRGraphicsStateGuardian : public GraphicsStateGuardian {
|
||||
public:
|
||||
CRGraphicsStateGuardian(GraphicsWindow *win);
|
||||
~CRGraphicsStateGuardian();
|
||||
|
||||
virtual void reset();
|
||||
|
||||
virtual void clear(const RenderBuffer &buffer);
|
||||
virtual void clear(const RenderBuffer &buffer, const DisplayRegion* region);
|
||||
|
||||
virtual void prepare_display_region();
|
||||
virtual bool prepare_lens();
|
||||
|
||||
virtual void render_frame();
|
||||
virtual void render_scene(Node *root, LensNode *projnode);
|
||||
virtual void render_subgraph(RenderTraverser *traverser,
|
||||
Node *subgraph, LensNode *projnode,
|
||||
const AllTransitionsWrapper &net_trans);
|
||||
virtual void render_subgraph(RenderTraverser *traverser,
|
||||
Node *subgraph,
|
||||
const AllTransitionsWrapper &net_trans);
|
||||
|
||||
virtual void draw_point(GeomPoint *geom, GeomContext *gc);
|
||||
virtual void draw_line(GeomLine *geom, GeomContext *gc);
|
||||
virtual void draw_linestrip(GeomLinestrip *geom, GeomContext *gc);
|
||||
virtual void draw_sprite(GeomSprite *geom, GeomContext *gc);
|
||||
virtual void draw_polygon(GeomPolygon *geom, GeomContext *gc);
|
||||
virtual void draw_quad(GeomQuad *geom, GeomContext *gc);
|
||||
virtual void draw_tri(GeomTri *geom, GeomContext *gc);
|
||||
virtual void draw_tristrip(GeomTristrip *geom, GeomContext *gc);
|
||||
virtual void draw_trifan(GeomTrifan *geom, GeomContext *gc);
|
||||
virtual void draw_sphere(GeomSphere *geom, GeomContext *gc);
|
||||
|
||||
virtual TextureContext *prepare_texture(Texture *tex);
|
||||
virtual void apply_texture(TextureContext *tc);
|
||||
virtual void release_texture(TextureContext *tc);
|
||||
|
||||
virtual GeomNodeContext *prepare_geom_node(GeomNode *node);
|
||||
virtual void draw_geom_node(GeomNode *node, GeomNodeContext *gnc);
|
||||
virtual void release_geom_node(GeomNodeContext *gnc);
|
||||
|
||||
virtual void copy_texture(TextureContext *tc, const DisplayRegion *dr);
|
||||
virtual void copy_texture(TextureContext *tc, const DisplayRegion *dr,
|
||||
const RenderBuffer &rb);
|
||||
virtual void draw_texture(TextureContext *tc, const DisplayRegion *dr);
|
||||
virtual void draw_texture(TextureContext *tc, const DisplayRegion *dr,
|
||||
const RenderBuffer &rb);
|
||||
|
||||
virtual void texture_to_pixel_buffer(TextureContext *tc, PixelBuffer *pb);
|
||||
virtual void texture_to_pixel_buffer(TextureContext *tc, PixelBuffer *pb,
|
||||
const DisplayRegion *dr);
|
||||
|
||||
virtual void copy_pixel_buffer(PixelBuffer *pb, const DisplayRegion *dr);
|
||||
virtual void copy_pixel_buffer(PixelBuffer *pb, const DisplayRegion *dr,
|
||||
const RenderBuffer &rb);
|
||||
virtual void draw_pixel_buffer(PixelBuffer *pb, const DisplayRegion *dr,
|
||||
const NodeTransitions& na=NodeTransitions());
|
||||
virtual void draw_pixel_buffer(PixelBuffer *pb, const DisplayRegion *dr,
|
||||
const RenderBuffer &rb,
|
||||
const NodeTransitions& na=NodeTransitions());
|
||||
|
||||
virtual void apply_material(const Material *material);
|
||||
virtual void apply_fog(Fog *fog);
|
||||
|
||||
virtual void apply_light(PointLight* light);
|
||||
virtual void apply_light(DirectionalLight* light);
|
||||
virtual void apply_light(Spotlight* light);
|
||||
virtual void apply_light(AmbientLight* light);
|
||||
|
||||
virtual void issue_transform(const TransformTransition *attrib);
|
||||
virtual void issue_color_transform(const ColorMatrixTransition *attrib);
|
||||
virtual void issue_alpha_transform(const AlphaTransformTransition *attrib);
|
||||
virtual void issue_tex_matrix(const TexMatrixTransition *attrib);
|
||||
virtual void issue_color(const ColorTransition *attrib);
|
||||
virtual void issue_texture(const TextureTransition *attrib);
|
||||
virtual void issue_light(const LightTransition *attrib);
|
||||
virtual void issue_material(const MaterialTransition *attrib);
|
||||
virtual void issue_render_mode(const RenderModeTransition *attrib);
|
||||
virtual void issue_color_blend(const ColorBlendTransition *attrib);
|
||||
virtual void issue_texture_apply(const TextureApplyTransition *attrib);
|
||||
virtual void issue_color_mask(const ColorMaskTransition *attrib);
|
||||
virtual void issue_depth_test(const DepthTestTransition *attrib);
|
||||
virtual void issue_depth_write(const DepthWriteTransition *attrib);
|
||||
virtual void issue_tex_gen(const TexGenTransition *attrib);
|
||||
virtual void issue_cull_face(const CullFaceTransition *attrib);
|
||||
virtual void issue_stencil(const StencilTransition *attrib);
|
||||
virtual void issue_clip_plane(const ClipPlaneTransition *attrib);
|
||||
virtual void issue_transparency(const TransparencyTransition *attrib);
|
||||
virtual void issue_fog(const FogTransition *attrib);
|
||||
virtual void issue_linesmooth(const LinesmoothTransition *attrib);
|
||||
virtual void issue_point_shape(const PointShapeTransition *attrib);
|
||||
virtual void issue_polygon_offset(const PolygonOffsetTransition *attrib);
|
||||
|
||||
virtual void issue_transform(const TransformState *transform);
|
||||
virtual void issue_texture(const TextureAttrib *attrib);
|
||||
virtual void issue_texture_apply(const TextureApplyAttrib *attrib);
|
||||
virtual void issue_cull_face(const CullFaceAttrib *attrib);
|
||||
virtual void issue_transparency(const TransparencyAttrib *attrib);
|
||||
virtual void issue_color_write(const ColorWriteAttrib *attrib);
|
||||
virtual void issue_depth_test(const DepthTestAttrib *attrib);
|
||||
virtual void issue_depth_write(const DepthWriteAttrib *attrib);
|
||||
|
||||
virtual bool wants_normals(void) const;
|
||||
virtual bool wants_texcoords(void) const;
|
||||
|
||||
virtual void begin_decal(GeomNode *base_geom, AllTransitionsWrapper &attrib);
|
||||
virtual void end_decal(GeomNode *base_geom);
|
||||
|
||||
virtual CoordinateSystem get_internal_coordinate_system() const;
|
||||
virtual float compute_distance_to(const LPoint3f &point) const;
|
||||
|
||||
void print_gfx_visual();
|
||||
|
||||
//For those interested in what the guardian thinks is the current
|
||||
//enabled/disable GL State compared to what GL says it is
|
||||
void dump_state(void);
|
||||
|
||||
//Methods for extracting the current color and alpha transformations
|
||||
INLINE const LMatrix4f &get_current_color_mat() const;
|
||||
INLINE const float &get_current_alpha_offset() const;
|
||||
INLINE const float &get_current_alpha_scale() const;
|
||||
|
||||
void issue_transformed_color(const Colorf &color) const;
|
||||
|
||||
protected:
|
||||
void free_pointers();
|
||||
virtual PT(SavedFrameBuffer) save_frame_buffer(const RenderBuffer &buffer,
|
||||
CPT(DisplayRegion) dr);
|
||||
virtual void restore_frame_buffer(SavedFrameBuffer *frame_buffer);
|
||||
|
||||
INLINE void activate();
|
||||
|
||||
INLINE void call_glClearColor(GLclampf red, GLclampf green, GLclampf blue,
|
||||
GLclampf alpha);
|
||||
INLINE void call_glClearDepth(GLclampd depth);
|
||||
INLINE void call_glClearStencil(GLint s);
|
||||
INLINE void call_glClearAccum(GLclampf red, GLclampf green, GLclampf blue,
|
||||
GLclampf alpha);
|
||||
INLINE void call_glDrawBuffer(GLenum mode);
|
||||
INLINE void call_glReadBuffer(GLenum mode);
|
||||
INLINE void call_glShadeModel(GLenum mode);
|
||||
INLINE void call_glBlendFunc(GLenum sfunc, GLenum dfunc);
|
||||
INLINE void call_glCullFace(GLenum mode);
|
||||
INLINE void call_glScissor(GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
INLINE void call_glViewport(GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
INLINE void call_glLightModelAmbient(const Colorf& color);
|
||||
INLINE void call_glLightModelLocal(GLboolean local);
|
||||
INLINE void call_glLightModelTwoSide(GLboolean twoside);
|
||||
INLINE void call_glStencilFunc(GLenum func,GLint refval,GLuint mask);
|
||||
INLINE void call_glStencilOp(GLenum fail,GLenum zfail,GLenum pass);
|
||||
INLINE void call_glClipPlane(GLenum plane, const double equation[4]);
|
||||
INLINE void call_glLineWidth(GLfloat width);
|
||||
INLINE void call_glPointSize(GLfloat size);
|
||||
INLINE void call_glFogMode(GLint mode);
|
||||
INLINE void call_glFogStart(GLfloat start);
|
||||
INLINE void call_glFogEnd(GLfloat end);
|
||||
INLINE void call_glFogDensity(GLfloat density);
|
||||
INLINE void call_glFogColor(const Colorf &color);
|
||||
INLINE void call_glAlphaFunc(GLenum func, GLclampf ref);
|
||||
INLINE void call_glPolygonMode(GLenum mode);
|
||||
|
||||
INLINE void set_pack_alignment(GLint alignment);
|
||||
INLINE void set_unpack_alignment(GLint alignment);
|
||||
|
||||
INLINE void enable_multisample(bool val);
|
||||
INLINE void enable_line_smooth(bool val);
|
||||
INLINE void enable_point_smooth(bool val);
|
||||
INLINE void enable_lighting(bool val);
|
||||
INLINE void enable_light(int light, bool val);
|
||||
INLINE void enable_texturing(bool val);
|
||||
INLINE void enable_scissor(bool val);
|
||||
INLINE void enable_dither(bool val);
|
||||
INLINE void enable_stencil_test(bool val);
|
||||
INLINE void enable_clip_plane(int clip_plane, bool val);
|
||||
INLINE void enable_multisample_alpha_one(bool val);
|
||||
INLINE void enable_multisample_alpha_mask(bool val);
|
||||
INLINE void enable_blend(bool val);
|
||||
INLINE void enable_depth_test(bool val);
|
||||
INLINE void enable_fog(bool val);
|
||||
INLINE void enable_alpha_test(bool val);
|
||||
INLINE void enable_polygon_offset(bool val);
|
||||
|
||||
INLINE GLenum get_light_id(int index) const;
|
||||
INLINE GLenum get_clip_plane_id(int index) const;
|
||||
|
||||
INLINE void issue_scene_graph_color();
|
||||
|
||||
void set_draw_buffer(const RenderBuffer &rb);
|
||||
void set_read_buffer(const RenderBuffer &rb);
|
||||
|
||||
void bind_texture(TextureContext *tc);
|
||||
void specify_texture(Texture *tex);
|
||||
bool apply_texture_immediate(Texture *tex);
|
||||
|
||||
GLenum get_texture_wrap_mode(Texture::WrapMode wm);
|
||||
GLenum get_texture_filter_type(Texture::FilterType ft);
|
||||
GLenum get_image_type(PixelBuffer::Type type);
|
||||
GLenum get_external_image_format(PixelBuffer::Format format);
|
||||
GLenum get_internal_image_format(PixelBuffer::Format format);
|
||||
GLint get_texture_apply_mode_type( TextureApplyProperty::Mode am ) const;
|
||||
GLint get_texture_apply_mode_type(TextureApplyAttrib::Mode am) const;
|
||||
GLenum get_depth_func_type(DepthTestProperty::Mode m) const;
|
||||
GLenum get_depth_func_type(DepthTestAttrib::Mode m) const;
|
||||
GLenum get_stencil_func_type(StencilProperty::Mode m) const;
|
||||
GLenum get_stencil_action_type(StencilProperty::Action a) const;
|
||||
GLenum get_fog_mode_type(Fog::Mode m) const;
|
||||
|
||||
#ifndef NDEBUG
|
||||
void build_phony_mipmaps(Texture *tex);
|
||||
void build_phony_mipmap_level(int level, int xsize, int ysize);
|
||||
void save_mipmap_images(Texture *tex);
|
||||
#endif
|
||||
|
||||
GLclampf _clear_color_red, _clear_color_green, _clear_color_blue,
|
||||
_clear_color_alpha;
|
||||
GLclampd _clear_depth;
|
||||
GLint _clear_stencil;
|
||||
GLclampf _clear_accum_red, _clear_accum_green, _clear_accum_blue,
|
||||
_clear_accum_alpha;
|
||||
GLenum _draw_buffer_mode;
|
||||
GLenum _read_buffer_mode;
|
||||
GLenum _shade_model_mode;
|
||||
GLint _scissor_x;
|
||||
GLint _scissor_y;
|
||||
GLsizei _scissor_width;
|
||||
GLsizei _scissor_height;
|
||||
GLint _viewport_x;
|
||||
GLint _viewport_y;
|
||||
GLsizei _viewport_width;
|
||||
GLsizei _viewport_height;
|
||||
GLboolean _lmodel_local;
|
||||
GLboolean _lmodel_twoside;
|
||||
Colorf _lmodel_ambient;
|
||||
Colorf _material_ambient;
|
||||
Colorf _material_diffuse;
|
||||
Colorf _material_specular;
|
||||
float _material_shininess;
|
||||
Colorf _material_emission;
|
||||
GLenum _stencil_func;
|
||||
GLenum _stencil_op;
|
||||
GLfloat _line_width;
|
||||
GLfloat _point_size;
|
||||
GLenum _blend_source_func;
|
||||
GLenum _blend_dest_func;
|
||||
GLboolean _depth_mask;
|
||||
GLint _fog_mode;
|
||||
GLfloat _fog_start;
|
||||
GLfloat _fog_end;
|
||||
GLfloat _fog_density;
|
||||
Colorf _fog_color;
|
||||
GLenum _alpha_func;
|
||||
GLclampf _alpha_func_ref;
|
||||
GLenum _polygon_mode;
|
||||
|
||||
GLint _pack_alignment;
|
||||
GLint _unpack_alignment;
|
||||
|
||||
bool _multisample_enabled;
|
||||
bool _line_smooth_enabled;
|
||||
bool _point_smooth_enabled;
|
||||
bool _scissor_enabled;
|
||||
bool _lighting_enabled;
|
||||
bool _lighting_enabled_this_frame;
|
||||
bool _texturing_enabled;
|
||||
bool _dither_enabled;
|
||||
bool _stencil_test_enabled;
|
||||
bool _multisample_alpha_one_enabled;
|
||||
bool _multisample_alpha_mask_enabled;
|
||||
bool _blend_enabled;
|
||||
bool _depth_test_enabled;
|
||||
bool _fog_enabled;
|
||||
bool _dithering_enabled;
|
||||
bool _alpha_test_enabled;
|
||||
bool _polygon_offset_enabled;
|
||||
int _decal_level;
|
||||
|
||||
class LightInfo {
|
||||
public:
|
||||
INLINE LightInfo();
|
||||
PT_Light _light;
|
||||
bool _enabled;
|
||||
bool _next_enabled;
|
||||
};
|
||||
|
||||
int _max_lights;
|
||||
LightInfo *_light_info; // LightInfo[_max_lights]
|
||||
int _cur_light_id;
|
||||
|
||||
LMatrix4f _current_projection_mat;
|
||||
int _projection_mat_stack_count;
|
||||
|
||||
int _max_clip_planes;
|
||||
PTA(PlaneNode *)_available_clip_plane_ids; // pPlaneNode[_max_clip_planes]
|
||||
bool *_clip_plane_enabled; // bool[_max_clip_planes]
|
||||
bool *_cur_clip_plane_enabled; // bool[_max_clip_planes]
|
||||
int _cur_clip_plane_id;
|
||||
|
||||
CPT(DisplayRegion) _actual_display_region;
|
||||
|
||||
int _pass_number;
|
||||
|
||||
public:
|
||||
static GraphicsStateGuardian *
|
||||
make_GlGraphicsStateGuardian(const FactoryParams ¶ms);
|
||||
|
||||
static TypeHandle get_class_type(void);
|
||||
static void init_type(void);
|
||||
virtual TypeHandle get_type(void) const;
|
||||
virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
|
||||
|
||||
static PStatCollector _vertices_display_list_pcollector;
|
||||
|
||||
private:
|
||||
static TypeHandle _type_handle;
|
||||
};
|
||||
|
||||
#ifdef DO_PSTATS
|
||||
#define DO_PSTATS_STUFF(XX) XX;
|
||||
#else
|
||||
#define DO_PSTATS_STUFF(XX)
|
||||
#endif
|
||||
|
||||
#include "crGraphicsStateGuardian.I"
|
||||
|
||||
#endif
|
||||
|
39
panda/src/crgsg/crSavedFrameBuffer.I
Normal file
39
panda/src/crgsg/crSavedFrameBuffer.I
Normal file
@ -0,0 +1,39 @@
|
||||
// Filename: chromium.SavedFrameBuffer.I
|
||||
// Created by: drose (06Oct99)
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// PANDA 3D SOFTWARE
|
||||
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
|
||||
//
|
||||
// All use of this software is subject to the terms of the Panda 3d
|
||||
// Software license. You should have received a copy of this license
|
||||
// along with this source code; you will also find a current copy of
|
||||
// the license at http://www.panda3d.org/license.txt .
|
||||
//
|
||||
// To contact the maintainers of this program write to
|
||||
// panda3d@yahoogroups.com .
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: CRSavedFrameBuffer::Constructor
|
||||
// Access: Public
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE CRSavedFrameBuffer::
|
||||
CRSavedFrameBuffer(const RenderBuffer &buffer, CPT(DisplayRegion) dr) :
|
||||
SavedFrameBuffer(buffer, dr)
|
||||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: CRSavedFrameBuffer::Destructor
|
||||
// Access: Public
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE CRSavedFrameBuffer::
|
||||
~CRSavedFrameBuffer() {
|
||||
}
|
||||
|
21
panda/src/crgsg/crSavedFrameBuffer.cxx
Normal file
21
panda/src/crgsg/crSavedFrameBuffer.cxx
Normal file
@ -0,0 +1,21 @@
|
||||
// Filename: chromium.SavedFrameBuffer.cxx
|
||||
// Created by: drose (06Oct99)
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// PANDA 3D SOFTWARE
|
||||
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
|
||||
//
|
||||
// All use of this software is subject to the terms of the Panda 3d
|
||||
// Software license. You should have received a copy of this license
|
||||
// along with this source code; you will also find a current copy of
|
||||
// the license at http://www.panda3d.org/license.txt .
|
||||
//
|
||||
// To contact the maintainers of this program write to
|
||||
// panda3d@yahoogroups.com .
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "crSavedFrameBuffer.h"
|
||||
|
||||
TypeHandle CRSavedFrameBuffer::_type_handle;
|
64
panda/src/crgsg/crSavedFrameBuffer.h
Normal file
64
panda/src/crgsg/crSavedFrameBuffer.h
Normal file
@ -0,0 +1,64 @@
|
||||
// Filename: chromium.SavedFrameBuffer.h
|
||||
// Created by: drose (06Oct99)
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// PANDA 3D SOFTWARE
|
||||
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
|
||||
//
|
||||
// All use of this software is subject to the terms of the Panda 3d
|
||||
// Software license. You should have received a copy of this license
|
||||
// along with this source code; you will also find a current copy of
|
||||
// the license at http://www.panda3d.org/license.txt .
|
||||
//
|
||||
// To contact the maintainers of this program write to
|
||||
// panda3d@yahoogroups.com .
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef CRSAVEDFRAMEBUFFER_H
|
||||
#define CRSAVEDFRAMEBUFFER_H
|
||||
|
||||
#include <pandabase.h>
|
||||
|
||||
#include <savedFrameBuffer.h>
|
||||
#include <texture.h>
|
||||
#include <textureContext.h>
|
||||
#include <pixelBuffer.h>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Class : CRSavedFrameBuffer
|
||||
// Description :
|
||||
////////////////////////////////////////////////////////////////////
|
||||
class EXPCL_PANDACR CRSavedFrameBuffer : public SavedFrameBuffer {
|
||||
public:
|
||||
INLINE CRSavedFrameBuffer(const RenderBuffer &buffer,
|
||||
CPT(DisplayRegion) dr);
|
||||
INLINE ~CRSavedFrameBuffer();
|
||||
|
||||
PT(Texture) _back_rgba;
|
||||
PT(PixelBuffer) _depth;
|
||||
|
||||
public:
|
||||
static TypeHandle get_class_type() {
|
||||
return _type_handle;
|
||||
}
|
||||
static void init_type() {
|
||||
SavedFrameBuffer::init_type();
|
||||
register_type(_type_handle, "CRSavedFrameBuffer",
|
||||
SavedFrameBuffer::get_class_type());
|
||||
}
|
||||
virtual TypeHandle get_type() const {
|
||||
return get_class_type();
|
||||
}
|
||||
virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
|
||||
|
||||
private:
|
||||
static TypeHandle _type_handle;
|
||||
};
|
||||
|
||||
#include "crSavedFrameBuffer.I"
|
||||
|
||||
#endif
|
||||
|
31
panda/src/crgsg/crTextureContext.I
Normal file
31
panda/src/crgsg/crTextureContext.I
Normal file
@ -0,0 +1,31 @@
|
||||
// Filename: chromium.TextureContext.I
|
||||
// Created by: drose (07Oct99)
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// PANDA 3D SOFTWARE
|
||||
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
|
||||
//
|
||||
// All use of this software is subject to the terms of the Panda 3d
|
||||
// Software license. You should have received a copy of this license
|
||||
// along with this source code; you will also find a current copy of
|
||||
// the license at http://www.panda3d.org/license.txt .
|
||||
//
|
||||
// To contact the maintainers of this program write to
|
||||
// panda3d@yahoogroups.com .
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: CRTextureContext::Constructor
|
||||
// Access: Public
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE CRTextureContext::
|
||||
CRTextureContext(Texture *tex) :
|
||||
TextureContext(tex)
|
||||
{
|
||||
_index = 0;
|
||||
_priority = 0.5; // For keeping resident in texture memory
|
||||
}
|
21
panda/src/crgsg/crTextureContext.cxx
Normal file
21
panda/src/crgsg/crTextureContext.cxx
Normal file
@ -0,0 +1,21 @@
|
||||
// Filename: chromium.TextureContext.cxx
|
||||
// Created by: drose (07Oct99)
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// PANDA 3D SOFTWARE
|
||||
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
|
||||
//
|
||||
// All use of this software is subject to the terms of the Panda 3d
|
||||
// Software license. You should have received a copy of this license
|
||||
// along with this source code; you will also find a current copy of
|
||||
// the license at http://www.panda3d.org/license.txt .
|
||||
//
|
||||
// To contact the maintainers of this program write to
|
||||
// panda3d@yahoogroups.com .
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "crTextureContext.h"
|
||||
|
||||
TypeHandle CRTextureContext::_type_handle;
|
80
panda/src/crgsg/crTextureContext.h
Normal file
80
panda/src/crgsg/crTextureContext.h
Normal file
@ -0,0 +1,80 @@
|
||||
// Filename: chromium.TextureContext.h
|
||||
// Created by: drose (07Oct99)
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// PANDA 3D SOFTWARE
|
||||
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
|
||||
//
|
||||
// All use of this software is subject to the terms of the Panda 3d
|
||||
// Software license. You should have received a copy of this license
|
||||
// along with this source code; you will also find a current copy of
|
||||
// the license at http://www.panda3d.org/license.txt .
|
||||
//
|
||||
// To contact the maintainers of this program write to
|
||||
// panda3d@yahoogroups.com .
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef CRTEXTURECONTEXT_H
|
||||
#define CRTEXTURECONTEXT_H
|
||||
|
||||
#include <pandabase.h>
|
||||
|
||||
#ifdef WIN32_VC
|
||||
// Must include windows.h before gl.h on NT
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#undef WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
|
||||
|
||||
#include <GL/gl.h>
|
||||
// Chromium specific
|
||||
#ifdef WIN32_VC // [
|
||||
#define WINDOWS 1
|
||||
#endif //]
|
||||
#include "cr_glwrapper.h"
|
||||
#include "cr_applications.h"
|
||||
#include "cr_spu.h"
|
||||
///////#include "cr_glstate.h"
|
||||
extern SPUDispatchTable chromium;
|
||||
|
||||
#include <textureContext.h>
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Class : CRTextureContext
|
||||
// Description :
|
||||
////////////////////////////////////////////////////////////////////
|
||||
class EXPCL_PANDACR CRTextureContext : public TextureContext {
|
||||
public:
|
||||
INLINE CRTextureContext(Texture *tex);
|
||||
|
||||
// This is the GL "name" of the texture object.
|
||||
GLuint _index;
|
||||
|
||||
// This is a GL texture priority.
|
||||
GLfloat _priority;
|
||||
|
||||
public:
|
||||
static TypeHandle get_class_type() {
|
||||
return _type_handle;
|
||||
}
|
||||
static void init_type() {
|
||||
TextureContext::init_type();
|
||||
register_type(_type_handle, "CRTextureContext",
|
||||
TextureContext::get_class_type());
|
||||
}
|
||||
virtual TypeHandle get_type() const {
|
||||
return get_class_type();
|
||||
}
|
||||
virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
|
||||
|
||||
private:
|
||||
static TypeHandle _type_handle;
|
||||
};
|
||||
|
||||
#include "crTextureContext.I"
|
||||
|
||||
#endif
|
||||
|
948
panda/src/crgsg/create_crgsg.py
Executable file
948
panda/src/crgsg/create_crgsg.py
Executable file
@ -0,0 +1,948 @@
|
||||
#!python
|
||||
|
||||
import re
|
||||
|
||||
files=(
|
||||
"config_%(n)sgsg.cxx",
|
||||
"config_%(n)sgsg.h",
|
||||
"%(n)sGeomNodeContext.I",
|
||||
"%(n)sGeomNodeContext.cxx",
|
||||
"%(n)sGeomNodeContext.h",
|
||||
"%(n)sGraphicsStateGuardian.I",
|
||||
"%(n)sGraphicsStateGuardian.cxx",
|
||||
"%(n)sGraphicsStateGuardian.h",
|
||||
"%(n)sSavedFrameBuffer.I",
|
||||
"%(n)sSavedFrameBuffer.cxx",
|
||||
"%(n)sSavedFrameBuffer.h",
|
||||
"%(n)sTextureContext.I",
|
||||
"%(n)sTextureContext.cxx",
|
||||
"%(n)sTextureContext.h",
|
||||
"%(n)sext.h",
|
||||
"%(n)sgsg_composite.cxx",
|
||||
"%(n)sgsg_composite1.cxx",
|
||||
#"Sources.pp",
|
||||
)
|
||||
|
||||
conversion=(
|
||||
("\"gl([A-Z])", "\"cr\\1"),
|
||||
("\\bgl([A-Z])", "chromium.\\1"),
|
||||
("\\bGL([A-TV-Z])", "CR\\1"),
|
||||
("glgsg", "crgsg"),
|
||||
("gl_", "cr_"),
|
||||
("gl-", "cr-"),
|
||||
#("GL_", "CR_"),
|
||||
("PANDAGL", "PANDACR"),
|
||||
("#include <GL/gl.h>", """
|
||||
#include <GL/gl.h>
|
||||
// Chromium specific
|
||||
#ifdef WIN32_VC // [
|
||||
#define WINDOWS 1
|
||||
#endif //]
|
||||
#include "cr_glwrapper.h"
|
||||
#include "cr_applications.h"
|
||||
#include "cr_spu.h"
|
||||
///////#include "cr_glstate.h"
|
||||
extern SPUDispatchTable chromium;
|
||||
"""),
|
||||
("(TypeHandle CRGraphicsStateGuardian::_type_handle;)", "\\1\nSPUDispatchTable chromium;"),
|
||||
)
|
||||
|
||||
for fn in files:
|
||||
destPath=fn%({"n":"cr"})
|
||||
print destPath
|
||||
# Read the file:
|
||||
f=open("../glgsg/"+(fn)%({"n":"gl"}), "rb")
|
||||
text=f.read()
|
||||
f.close()
|
||||
|
||||
# Convert the text:
|
||||
for i in conversion:
|
||||
text=re.sub(i[0], i[1], text)
|
||||
|
||||
# Write the file:
|
||||
dest=open(destPath, "wb")
|
||||
dest.write(text)
|
||||
dest.close()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
"""
|
||||
("\\bglAccum", "chromium.Accum"),
|
||||
("\\bglActiveTextureARB", "chromium.ActiveTextureARB"),
|
||||
("\\bglAlphaFunc", "chromium.AlphaFunc"),
|
||||
("\\bglAreTexturesResident", "chromium.AreTexturesResident"),
|
||||
("\\bglArrayElement", "chromium.ArrayElement"),
|
||||
("\\bglBarrierCreate", "chromium.BarrierCreate"),
|
||||
("\\bglBarrierDestroy", "chromium.BarrierDestroy"),
|
||||
("\\bglBarrierExec", "chromium.BarrierExec"),
|
||||
("\\bglBegin", "chromium.Begin"),
|
||||
("\\bglBindTexture", "chromium.BindTexture"),
|
||||
("\\bglBitmap", "chromium.Bitmap"),
|
||||
("\\bglBlendColorEXT", "chromium.BlendColorEXT"),
|
||||
("\\bglBlendEquationEXT", "chromium.BlendEquationEXT"),
|
||||
("\\bglBlendFunc", "chromium.BlendFunc"),
|
||||
("\\bglBoundsInfo", "chromium.BoundsInfo"),
|
||||
("\\bglCallList", "chromium.CallList"),
|
||||
("\\bglCallLists", "chromium.CallLists"),
|
||||
("\\bglChromiumParameterfCR", "chromium.ChromiumParameterfCR"),
|
||||
("\\bglChromiumParameteriCR", "chromium.ChromiumParameteriCR"),
|
||||
("\\bglChromiumParametervCR", "chromium.ChromiumParametervCR"),
|
||||
("\\bglClear", "chromium.Clear"),
|
||||
("\\bglClearAccum", "chromium.ClearAccum"),
|
||||
("\\bglClearColor", "chromium.ClearColor"),
|
||||
("\\bglClearDepth", "chromium.ClearDepth"),
|
||||
("\\bglClearIndex", "chromium.ClearIndex"),
|
||||
("\\bglClearStencil", "chromium.ClearStencil"),
|
||||
("\\bglClientActiveTextureARB", "chromium.ClientActiveTextureARB"),
|
||||
("\\bglClipPlane", "chromium.ClipPlane"),
|
||||
("\\bglColor3b", "chromium.Color3b"),
|
||||
("\\bglColor3bv", "chromium.Color3bv"),
|
||||
("\\bglColor3d", "chromium.Color3d"),
|
||||
("\\bglColor3dv", "chromium.Color3dv"),
|
||||
("\\bglColor3f", "chromium.Color3f"),
|
||||
("\\bglColor3fv", "chromium.Color3fv"),
|
||||
("\\bglColor3i", "chromium.Color3i"),
|
||||
("\\bglColor3iv", "chromium.Color3iv"),
|
||||
("\\bglColor3s", "chromium.Color3s"),
|
||||
("\\bglColor3sv", "chromium.Color3sv"),
|
||||
("\\bglColor3ub", "chromium.Color3ub"),
|
||||
("\\bglColor3ubv", "chromium.Color3ubv"),
|
||||
("\\bglColor3ui", "chromium.Color3ui"),
|
||||
("\\bglColor3uiv", "chromium.Color3uiv"),
|
||||
("\\bglColor3us", "chromium.Color3us"),
|
||||
("\\bglColor3usv", "chromium.Color3usv"),
|
||||
("\\bglColor4b", "chromium.Color4b"),
|
||||
("\\bglColor4bv", "chromium.Color4bv"),
|
||||
("\\bglColor4d", "chromium.Color4d"),
|
||||
("\\bglColor4dv", "chromium.Color4dv"),
|
||||
("\\bglColor4f", "chromium.Color4f"),
|
||||
("\\bglColor4fv", "chromium.Color4fv"),
|
||||
("\\bglColor4i", "chromium.Color4i"),
|
||||
("\\bglColor4iv", "chromium.Color4iv"),
|
||||
("\\bglColor4s", "chromium.Color4s"),
|
||||
("\\bglColor4sv", "chromium.Color4sv"),
|
||||
("\\bglColor4ub", "chromium.Color4ub"),
|
||||
("\\bglColor4ubv", "chromium.Color4ubv"),
|
||||
("\\bglColor4ui", "chromium.Color4ui"),
|
||||
("\\bglColor4uiv", "chromium.Color4uiv"),
|
||||
("\\bglColor4us", "chromium.Color4us"),
|
||||
("\\bglColor4usv", "chromium.Color4usv"),
|
||||
("\\bglColorMask", "chromium.ColorMask"),
|
||||
("\\bglColorMaterial", "chromium.ColorMaterial"),
|
||||
("\\bglColorPointer", "chromium.ColorPointer"),
|
||||
("\\bglCombinerInputNV", "chromium.CombinerInputNV"),
|
||||
("\\bglCombinerOutputNV", "chromium.CombinerOutputNV"),
|
||||
("\\bglCombinerParameterfNV", "chromium.CombinerParameterfNV"),
|
||||
("\\bglCombinerParameterfvNV", "chromium.CombinerParameterfvNV"),
|
||||
("\\bglCombinerParameteriNV", "chromium.CombinerParameteriNV"),
|
||||
("\\bglCombinerParameterivNV", "chromium.CombinerParameterivNV"),
|
||||
("\\bglCombinerStageParameterfvNV", "chromium.CombinerStageParameterfvNV"),
|
||||
("\\bglCopyPixels", "chromium.CopyPixels"),
|
||||
("\\bglCopyTexImage1D", "chromium.CopyTexImage1D"),
|
||||
("\\bglCopyTexImage2D", "chromium.CopyTexImage2D"),
|
||||
("\\bglCopyTexSubImage1D", "chromium.CopyTexSubImage1D"),
|
||||
("\\bglCopyTexSubImage2D", "chromium.CopyTexSubImage2D"),
|
||||
("\\bglCreateContext", "chromium.CreateContext"),
|
||||
("\\bglCullFace", "chromium.CullFace"),
|
||||
("\\bglDeleteLists", "chromium.DeleteLists"),
|
||||
("\\bglDeleteTextures", "chromium.DeleteTextures"),
|
||||
("\\bglDepthFunc", "chromium.DepthFunc"),
|
||||
("\\bglDepthMask", "chromium.DepthMask"),
|
||||
("\\bglDepthRange", "chromium.DepthRange"),
|
||||
("\\bglDestroyContext", "chromium.DestroyContext"),
|
||||
("\\bglDisable", "chromium.Disable"),
|
||||
("\\bglDisableClientState", "chromium.DisableClientState"),
|
||||
("\\bglDrawArrays", "chromium.DrawArrays"),
|
||||
("\\bglDrawBuffer", "chromium.DrawBuffer"),
|
||||
("\\bglDrawElements", "chromium.DrawElements"),
|
||||
("\\bglDrawPixels", "chromium.DrawPixels"),
|
||||
("\\bglDrawRangeElements", "chromium.DrawRangeElements"),
|
||||
("\\bglEdgeFlag", "chromium.EdgeFlag"),
|
||||
("\\bglEdgeFlagPointer", "chromium.EdgeFlagPointer"),
|
||||
("\\bglEdgeFlagv", "chromium.EdgeFlagv"),
|
||||
("\\bglEnable", "chromium.Enable"),
|
||||
("\\bglEnableClientState", "chromium.EnableClientState"),
|
||||
("\\bglEnd", "chromium.End"),
|
||||
("\\bglEndList", "chromium.EndList"),
|
||||
("\\bglEvalCoord1d", "chromium.EvalCoord1d"),
|
||||
("\\bglEvalCoord1dv", "chromium.EvalCoord1dv"),
|
||||
("\\bglEvalCoord1f", "chromium.EvalCoord1f"),
|
||||
("\\bglEvalCoord1fv", "chromium.EvalCoord1fv"),
|
||||
("\\bglEvalCoord2d", "chromium.EvalCoord2d"),
|
||||
("\\bglEvalCoord2dv", "chromium.EvalCoord2dv"),
|
||||
("\\bglEvalCoord2f", "chromium.EvalCoord2f"),
|
||||
("\\bglEvalCoord2fv", "chromium.EvalCoord2fv"),
|
||||
("\\bglEvalMesh1", "chromium.EvalMesh1"),
|
||||
("\\bglEvalMesh2", "chromium.EvalMesh2"),
|
||||
("\\bglEvalPoint1", "chromium.EvalPoint1"),
|
||||
("\\bglEvalPoint2", "chromium.EvalPoint2"),
|
||||
("\\bglFeedbackBuffer", "chromium.FeedbackBuffer"),
|
||||
("\\bglFinalCombinerInputNV", "chromium.FinalCombinerInputNV"),
|
||||
("\\bglFinish", "chromium.Finish"),
|
||||
("\\bglFlush", "chromium.Flush"),
|
||||
("\\bglFogf", "chromium.Fogf"),
|
||||
("\\bglFogfv", "chromium.Fogfv"),
|
||||
("\\bglFogi", "chromium.Fogi"),
|
||||
("\\bglFogiv", "chromium.Fogiv"),
|
||||
("\\bglFrontFace", "chromium.FrontFace"),
|
||||
("\\bglFrustum", "chromium.Frustum"),
|
||||
("\\bglGenLists", "chromium.GenLists"),
|
||||
("\\bglGenTextures", "chromium.GenTextures"),
|
||||
("\\bglGetBooleanv", "chromium.GetBooleanv"),
|
||||
("\\bglGetChromiumParametervCR", "chromium.GetChromiumParametervCR"),
|
||||
("\\bglGetClipPlane", "chromium.GetClipPlane"),
|
||||
("\\bglGetCombinerInputParameterfvNV", "chromium.GetCombinerInputParameterfvNV"),
|
||||
("\\bglGetCombinerInputParameterivNV", "chromium.GetCombinerInputParameterivNV"),
|
||||
("\\bglGetCombinerOutputParameterfvNV", "chromium.GetCombinerOutputParameterfvNV"),
|
||||
("\\bglGetCombinerOutputParameterivNV", "chromium.GetCombinerOutputParameterivNV"),
|
||||
("\\bglGetCombinerStageParameterfvNV", "chromium.GetCombinerStageParameterfvNV"),
|
||||
("\\bglGetDoublev", "chromium.GetDoublev"),
|
||||
("\\bglGetError", "chromium.GetError"),
|
||||
("\\bglGetFinalCombinerInputParameterfvNV", "chromium.GetFinalCombinerInputParameterfvNV"),
|
||||
("\\bglGetFinalCombinerInputParameterivNV", "chromium.GetFinalCombinerInputParameterivNV"),
|
||||
("\\bglGetFloatv", "chromium.GetFloatv"),
|
||||
("\\bglGetIntegerv", "chromium.GetIntegerv"),
|
||||
("\\bglGetLightfv", "chromium.GetLightfv"),
|
||||
("\\bglGetLightiv", "chromium.GetLightiv"),
|
||||
("\\bglGetMapdv", "chromium.GetMapdv"),
|
||||
("\\bglGetMapfv", "chromium.GetMapfv"),
|
||||
("\\bglGetMapiv", "chromium.GetMapiv"),
|
||||
("\\bglGetMaterialfv", "chromium.GetMaterialfv"),
|
||||
("\\bglGetMaterialiv", "chromium.GetMaterialiv"),
|
||||
("\\bglGetPixelMapfv", "chromium.GetPixelMapfv"),
|
||||
("\\bglGetPixelMapuiv", "chromium.GetPixelMapuiv"),
|
||||
("\\bglGetPixelMapusv", "chromium.GetPixelMapusv"),
|
||||
("\\bglGetPointerv", "chromium.GetPointerv"),
|
||||
("\\bglGetPolygonStipple", "chromium.GetPolygonStipple"),
|
||||
("\\bglGetString", "chromium.GetString"),
|
||||
("\\bglGetTexEnvfv", "chromium.GetTexEnvfv"),
|
||||
("\\bglGetTexEnviv", "chromium.GetTexEnviv"),
|
||||
("\\bglGetTexGendv", "chromium.GetTexGendv"),
|
||||
("\\bglGetTexGenfv", "chromium.GetTexGenfv"),
|
||||
("\\bglGetTexGeniv", "chromium.GetTexGeniv"),
|
||||
("\\bglGetTexImage", "chromium.GetTexImage"),
|
||||
("\\bglGetTexLevelParameterfv", "chromium.GetTexLevelParameterfv"),
|
||||
("\\bglGetTexLevelParameteriv", "chromium.GetTexLevelParameteriv"),
|
||||
("\\bglGetTexParameterfv", "chromium.GetTexParameterfv"),
|
||||
("\\bglGetTexParameteriv", "chromium.GetTexParameteriv"),
|
||||
("\\bglHint", "chromium.Hint"),
|
||||
("\\bglIndexMask", "chromium.IndexMask"),
|
||||
("\\bglIndexPointer", "chromium.IndexPointer"),
|
||||
("\\bglIndexd", "chromium.Indexd"),
|
||||
("\\bglIndexdv", "chromium.Indexdv"),
|
||||
("\\bglIndexf", "chromium.Indexf"),
|
||||
("\\bglIndexfv", "chromium.Indexfv"),
|
||||
("\\bglIndexi", "chromium.Indexi"),
|
||||
("\\bglIndexiv", "chromium.Indexiv"),
|
||||
("\\bglIndexs", "chromium.Indexs"),
|
||||
("\\bglIndexsv", "chromium.Indexsv"),
|
||||
("\\bglIndexub", "chromium.Indexub"),
|
||||
("\\bglIndexubv", "chromium.Indexubv"),
|
||||
("\\bglInitNames", "chromium.InitNames"),
|
||||
("\\bglInterleavedArrays", "chromium.InterleavedArrays"),
|
||||
("\\bglIsEnabled", "chromium.IsEnabled"),
|
||||
("\\bglIsList", "chromium.IsList"),
|
||||
("\\bglIsTexture", "chromium.IsTexture"),
|
||||
("\\bglLightModelf", "chromium.LightModelf"),
|
||||
("\\bglLightModelfv", "chromium.LightModelfv"),
|
||||
("\\bglLightModeli", "chromium.LightModeli"),
|
||||
("\\bglLightModeliv", "chromium.LightModeliv"),
|
||||
("\\bglLightf", "chromium.Lightf"),
|
||||
("\\bglLightfv", "chromium.Lightfv"),
|
||||
("\\bglLighti", "chromium.Lighti"),
|
||||
("\\bglLightiv", "chromium.Lightiv"),
|
||||
("\\bglLineStipple", "chromium.LineStipple"),
|
||||
("\\bglLineWidth", "chromium.LineWidth"),
|
||||
("\\bglListBase", "chromium.ListBase"),
|
||||
("\\bglLoadIdentity", "chromium.LoadIdentity"),
|
||||
("\\bglLoadMatrixd", "chromium.LoadMatrixd"),
|
||||
("\\bglLoadMatrixf", "chromium.LoadMatrixf"),
|
||||
("\\bglLoadName", "chromium.LoadName"),
|
||||
("\\bglLogicOp", "chromium.LogicOp"),
|
||||
("\\bglMakeCurrent", "chromium.MakeCurrent"),
|
||||
("\\bglMap1d", "chromium.Map1d"),
|
||||
("\\bglMap1f", "chromium.Map1f"),
|
||||
("\\bglMap2d", "chromium.Map2d"),
|
||||
("\\bglMap2f", "chromium.Map2f"),
|
||||
("\\bglMapGrid1d", "chromium.MapGrid1d"),
|
||||
("\\bglMapGrid1f", "chromium.MapGrid1f"),
|
||||
("\\bglMapGrid2d", "chromium.MapGrid2d"),
|
||||
("\\bglMapGrid2f", "chromium.MapGrid2f"),
|
||||
("\\bglMaterialf", "chromium.Materialf"),
|
||||
("\\bglMaterialfv", "chromium.Materialfv"),
|
||||
("\\bglMateriali", "chromium.Materiali"),
|
||||
("\\bglMaterialiv", "chromium.Materialiv"),
|
||||
("\\bglMatrixMode", "chromium.MatrixMode"),
|
||||
("\\bglMultMatrixd", "chromium.MultMatrixd"),
|
||||
("\\bglMultMatrixf", "chromium.MultMatrixf"),
|
||||
("\\bglMultiTexCoord1dARB", "chromium.MultiTexCoord1dARB"),
|
||||
("\\bglMultiTexCoord1dvARB", "chromium.MultiTexCoord1dvARB"),
|
||||
("\\bglMultiTexCoord1fARB", "chromium.MultiTexCoord1fARB"),
|
||||
("\\bglMultiTexCoord1fvARB", "chromium.MultiTexCoord1fvARB"),
|
||||
("\\bglMultiTexCoord1iARB", "chromium.MultiTexCoord1iARB"),
|
||||
("\\bglMultiTexCoord1ivARB", "chromium.MultiTexCoord1ivARB"),
|
||||
("\\bglMultiTexCoord1sARB", "chromium.MultiTexCoord1sARB"),
|
||||
("\\bglMultiTexCoord1svARB", "chromium.MultiTexCoord1svARB"),
|
||||
("\\bglMultiTexCoord2dARB", "chromium.MultiTexCoord2dARB"),
|
||||
("\\bglMultiTexCoord2dvARB", "chromium.MultiTexCoord2dvARB"),
|
||||
("\\bglMultiTexCoord2fARB", "chromium.MultiTexCoord2fARB"),
|
||||
("\\bglMultiTexCoord2fvARB", "chromium.MultiTexCoord2fvARB"),
|
||||
("\\bglMultiTexCoord2iARB", "chromium.MultiTexCoord2iARB"),
|
||||
("\\bglMultiTexCoord2ivARB", "chromium.MultiTexCoord2ivARB"),
|
||||
("\\bglMultiTexCoord2sARB", "chromium.MultiTexCoord2sARB"),
|
||||
("\\bglMultiTexCoord2svARB", "chromium.MultiTexCoord2svARB"),
|
||||
("\\bglMultiTexCoord3dARB", "chromium.MultiTexCoord3dARB"),
|
||||
("\\bglMultiTexCoord3dvARB", "chromium.MultiTexCoord3dvARB"),
|
||||
("\\bglMultiTexCoord3fARB", "chromium.MultiTexCoord3fARB"),
|
||||
("\\bglMultiTexCoord3fvARB", "chromium.MultiTexCoord3fvARB"),
|
||||
("\\bglMultiTexCoord3iARB", "chromium.MultiTexCoord3iARB"),
|
||||
("\\bglMultiTexCoord3ivARB", "chromium.MultiTexCoord3ivARB"),
|
||||
("\\bglMultiTexCoord3sARB", "chromium.MultiTexCoord3sARB"),
|
||||
("\\bglMultiTexCoord3svARB", "chromium.MultiTexCoord3svARB"),
|
||||
("\\bglMultiTexCoord4dARB", "chromium.MultiTexCoord4dARB"),
|
||||
("\\bglMultiTexCoord4dvARB", "chromium.MultiTexCoord4dvARB"),
|
||||
("\\bglMultiTexCoord4fARB", "chromium.MultiTexCoord4fARB"),
|
||||
("\\bglMultiTexCoord4fvARB", "chromium.MultiTexCoord4fvARB"),
|
||||
("\\bglMultiTexCoord4iARB", "chromium.MultiTexCoord4iARB"),
|
||||
("\\bglMultiTexCoord4ivARB", "chromium.MultiTexCoord4ivARB"),
|
||||
("\\bglMultiTexCoord4sARB", "chromium.MultiTexCoord4sARB"),
|
||||
("\\bglMultiTexCoord4svARB", "chromium.MultiTexCoord4svARB"),
|
||||
("\\bglNewList", "chromium.NewList"),
|
||||
("\\bglNormal3b", "chromium.Normal3b"),
|
||||
("\\bglNormal3bv", "chromium.Normal3bv"),
|
||||
("\\bglNormal3d", "chromium.Normal3d"),
|
||||
("\\bglNormal3dv", "chromium.Normal3dv"),
|
||||
("\\bglNormal3f", "chromium.Normal3f"),
|
||||
("\\bglNormal3fv", "chromium.Normal3fv"),
|
||||
("\\bglNormal3i", "chromium.Normal3i"),
|
||||
("\\bglNormal3iv", "chromium.Normal3iv"),
|
||||
("\\bglNormal3s", "chromium.Normal3s"),
|
||||
("\\bglNormal3sv", "chromium.Normal3sv"),
|
||||
("\\bglNormalPointer", "chromium.NormalPointer"),
|
||||
("\\bglOrtho", "chromium.Ortho"),
|
||||
("\\bglPassThrough", "chromium.PassThrough"),
|
||||
("\\bglPixelMapfv", "chromium.PixelMapfv"),
|
||||
("\\bglPixelMapuiv", "chromium.PixelMapuiv"),
|
||||
("\\bglPixelMapusv", "chromium.PixelMapusv"),
|
||||
("\\bglPixelStoref", "chromium.PixelStoref"),
|
||||
("\\bglPixelStorei", "chromium.PixelStorei"),
|
||||
("\\bglPixelTransferf", "chromium.PixelTransferf"),
|
||||
("\\bglPixelTransferi", "chromium.PixelTransferi"),
|
||||
("\\bglPixelZoom", "chromium.PixelZoom"),
|
||||
("\\bglPointSize", "chromium.PointSize"),
|
||||
("\\bglPolygonMode", "chromium.PolygonMode"),
|
||||
("\\bglPolygonOffset", "chromium.PolygonOffset"),
|
||||
("\\bglPolygonStipple", "chromium.PolygonStipple"),
|
||||
("\\bglPopAttrib", "chromium.PopAttrib"),
|
||||
("\\bglPopClientAttrib", "chromium.PopClientAttrib"),
|
||||
("\\bglPopMatrix", "chromium.PopMatrix"),
|
||||
("\\bglPopName", "chromium.PopName"),
|
||||
("\\bglPrioritizeTextures", "chromium.PrioritizeTextures"),
|
||||
("\\bglPushAttrib", "chromium.PushAttrib"),
|
||||
("\\bglPushClientAttrib", "chromium.PushClientAttrib"),
|
||||
("\\bglPushMatrix", "chromium.PushMatrix"),
|
||||
("\\bglPushName", "chromium.PushName"),
|
||||
("\\bglRasterPos2d", "chromium.RasterPos2d"),
|
||||
("\\bglRasterPos2dv", "chromium.RasterPos2dv"),
|
||||
("\\bglRasterPos2f", "chromium.RasterPos2f"),
|
||||
("\\bglRasterPos2fv", "chromium.RasterPos2fv"),
|
||||
("\\bglRasterPos2i", "chromium.RasterPos2i"),
|
||||
("\\bglRasterPos2iv", "chromium.RasterPos2iv"),
|
||||
("\\bglRasterPos2s", "chromium.RasterPos2s"),
|
||||
("\\bglRasterPos2sv", "chromium.RasterPos2sv"),
|
||||
("\\bglRasterPos3d", "chromium.RasterPos3d"),
|
||||
("\\bglRasterPos3dv", "chromium.RasterPos3dv"),
|
||||
("\\bglRasterPos3f", "chromium.RasterPos3f"),
|
||||
("\\bglRasterPos3fv", "chromium.RasterPos3fv"),
|
||||
("\\bglRasterPos3i", "chromium.RasterPos3i"),
|
||||
("\\bglRasterPos3iv", "chromium.RasterPos3iv"),
|
||||
("\\bglRasterPos3s", "chromium.RasterPos3s"),
|
||||
("\\bglRasterPos3sv", "chromium.RasterPos3sv"),
|
||||
("\\bglRasterPos4d", "chromium.RasterPos4d"),
|
||||
("\\bglRasterPos4dv", "chromium.RasterPos4dv"),
|
||||
("\\bglRasterPos4f", "chromium.RasterPos4f"),
|
||||
("\\bglRasterPos4fv", "chromium.RasterPos4fv"),
|
||||
("\\bglRasterPos4i", "chromium.RasterPos4i"),
|
||||
("\\bglRasterPos4iv", "chromium.RasterPos4iv"),
|
||||
("\\bglRasterPos4s", "chromium.RasterPos4s"),
|
||||
("\\bglRasterPos4sv", "chromium.RasterPos4sv"),
|
||||
("\\bglReadBuffer", "chromium.ReadBuffer"),
|
||||
("\\bglReadPixels", "chromium.ReadPixels"),
|
||||
("\\bglRectd", "chromium.Rectd"),
|
||||
("\\bglRectdv", "chromium.Rectdv"),
|
||||
("\\bglRectf", "chromium.Rectf"),
|
||||
("\\bglRectfv", "chromium.Rectfv"),
|
||||
("\\bglRecti", "chromium.Recti"),
|
||||
("\\bglRectiv", "chromium.Rectiv"),
|
||||
("\\bglRects", "chromium.Rects"),
|
||||
("\\bglRectsv", "chromium.Rectsv"),
|
||||
("\\bglRenderMode", "chromium.RenderMode"),
|
||||
("\\bglRotated", "chromium.Rotated"),
|
||||
("\\bglRotatef", "chromium.Rotatef"),
|
||||
("\\bglScaled", "chromium.Scaled"),
|
||||
("\\bglScalef", "chromium.Scalef"),
|
||||
("\\bglScissor", "chromium.Scissor"),
|
||||
("\\bglSecondaryColor3bEXT", "chromium.SecondaryColor3bEXT"),
|
||||
("\\bglSecondaryColor3bvEXT", "chromium.SecondaryColor3bvEXT"),
|
||||
("\\bglSecondaryColor3dEXT", "chromium.SecondaryColor3dEXT"),
|
||||
("\\bglSecondaryColor3dvEXT", "chromium.SecondaryColor3dvEXT"),
|
||||
("\\bglSecondaryColor3fEXT", "chromium.SecondaryColor3fEXT"),
|
||||
("\\bglSecondaryColor3fvEXT", "chromium.SecondaryColor3fvEXT"),
|
||||
("\\bglSecondaryColor3iEXT", "chromium.SecondaryColor3iEXT"),
|
||||
("\\bglSecondaryColor3ivEXT", "chromium.SecondaryColor3ivEXT"),
|
||||
("\\bglSecondaryColor3sEXT", "chromium.SecondaryColor3sEXT"),
|
||||
("\\bglSecondaryColor3svEXT", "chromium.SecondaryColor3svEXT"),
|
||||
("\\bglSecondaryColor3ubEXT", "chromium.SecondaryColor3ubEXT"),
|
||||
("\\bglSecondaryColor3ubvEXT", "chromium.SecondaryColor3ubvEXT"),
|
||||
("\\bglSecondaryColor3uiEXT", "chromium.SecondaryColor3uiEXT"),
|
||||
("\\bglSecondaryColor3uivEXT", "chromium.SecondaryColor3uivEXT"),
|
||||
("\\bglSecondaryColor3usEXT", "chromium.SecondaryColor3usEXT"),
|
||||
("\\bglSecondaryColor3usvEXT", "chromium.SecondaryColor3usvEXT"),
|
||||
("\\bglSecondaryColorPointerEXT", "chromium.SecondaryColorPointerEXT"),
|
||||
("\\bglSelectBuffer", "chromium.SelectBuffer"),
|
||||
("\\bglSemaphoreCreate", "chromium.SemaphoreCreate"),
|
||||
("\\bglSemaphoreDestroy", "chromium.SemaphoreDestroy"),
|
||||
("\\bglSemaphoreP", "chromium.SemaphoreP"),
|
||||
("\\bglSemaphoreV", "chromium.SemaphoreV"),
|
||||
("\\bglShadeModel", "chromium.ShadeModel"),
|
||||
("\\bglStencilFunc", "chromium.StencilFunc"),
|
||||
("\\bglStencilMask", "chromium.StencilMask"),
|
||||
("\\bglStencilOp", "chromium.StencilOp"),
|
||||
("\\bglSwapBuffers", "chromium.SwapBuffers"),
|
||||
("\\bglTexCoord1d", "chromium.TexCoord1d"),
|
||||
("\\bglTexCoord1dv", "chromium.TexCoord1dv"),
|
||||
("\\bglTexCoord1f", "chromium.TexCoord1f"),
|
||||
("\\bglTexCoord1fv", "chromium.TexCoord1fv"),
|
||||
("\\bglTexCoord1i", "chromium.TexCoord1i"),
|
||||
("\\bglTexCoord1iv", "chromium.TexCoord1iv"),
|
||||
("\\bglTexCoord1s", "chromium.TexCoord1s"),
|
||||
("\\bglTexCoord1sv", "chromium.TexCoord1sv"),
|
||||
("\\bglTexCoord2d", "chromium.TexCoord2d"),
|
||||
("\\bglTexCoord2dv", "chromium.TexCoord2dv"),
|
||||
("\\bglTexCoord2f", "chromium.TexCoord2f"),
|
||||
("\\bglTexCoord2fv", "chromium.TexCoord2fv"),
|
||||
("\\bglTexCoord2i", "chromium.TexCoord2i"),
|
||||
("\\bglTexCoord2iv", "chromium.TexCoord2iv"),
|
||||
("\\bglTexCoord2s", "chromium.TexCoord2s"),
|
||||
("\\bglTexCoord2sv", "chromium.TexCoord2sv"),
|
||||
("\\bglTexCoord3d", "chromium.TexCoord3d"),
|
||||
("\\bglTexCoord3dv", "chromium.TexCoord3dv"),
|
||||
("\\bglTexCoord3f", "chromium.TexCoord3f"),
|
||||
("\\bglTexCoord3fv", "chromium.TexCoord3fv"),
|
||||
("\\bglTexCoord3i", "chromium.TexCoord3i"),
|
||||
("\\bglTexCoord3iv", "chromium.TexCoord3iv"),
|
||||
("\\bglTexCoord3s", "chromium.TexCoord3s"),
|
||||
("\\bglTexCoord3sv", "chromium.TexCoord3sv"),
|
||||
("\\bglTexCoord4d", "chromium.TexCoord4d"),
|
||||
("\\bglTexCoord4dv", "chromium.TexCoord4dv"),
|
||||
("\\bglTexCoord4f", "chromium.TexCoord4f"),
|
||||
("\\bglTexCoord4fv", "chromium.TexCoord4fv"),
|
||||
("\\bglTexCoord4i", "chromium.TexCoord4i"),
|
||||
("\\bglTexCoord4iv", "chromium.TexCoord4iv"),
|
||||
("\\bglTexCoord4s", "chromium.TexCoord4s"),
|
||||
("\\bglTexCoord4sv", "chromium.TexCoord4sv"),
|
||||
("\\bglTexCoordPointer", "chromium.TexCoordPointer"),
|
||||
("\\bglTexEnvf", "chromium.TexEnvf"),
|
||||
("\\bglTexEnvfv", "chromium.TexEnvfv"),
|
||||
("\\bglTexEnvi", "chromium.TexEnvi"),
|
||||
("\\bglTexEnviv", "chromium.TexEnviv"),
|
||||
("\\bglTexGend", "chromium.TexGend"),
|
||||
("\\bglTexGendv", "chromium.TexGendv"),
|
||||
("\\bglTexGenf", "chromium.TexGenf"),
|
||||
("\\bglTexGenfv", "chromium.TexGenfv"),
|
||||
("\\bglTexGeni", "chromium.TexGeni"),
|
||||
("\\bglTexGeniv", "chromium.TexGeniv"),
|
||||
("\\bglTexImage1D", "chromium.TexImage1D"),
|
||||
("\\bglTexImage2D", "chromium.TexImage2D"),
|
||||
("\\bglTexParameterf", "chromium.TexParameterf"),
|
||||
("\\bglTexParameterfv", "chromium.TexParameterfv"),
|
||||
("\\bglTexParameteri", "chromium.TexParameteri"),
|
||||
("\\bglTexParameteriv", "chromium.TexParameteriv"),
|
||||
("\\bglTexSubImage1D", "chromium.TexSubImage1D"),
|
||||
("\\bglTexSubImage2D", "chromium.TexSubImage2D"),
|
||||
("\\bglTranslated", "chromium.Translated"),
|
||||
("\\bglTranslatef", "chromium.Translatef"),
|
||||
("\\bglVertex2d", "chromium.Vertex2d"),
|
||||
("\\bglVertex2dv", "chromium.Vertex2dv"),
|
||||
("\\bglVertex2f", "chromium.Vertex2f"),
|
||||
("\\bglVertex2fv", "chromium.Vertex2fv"),
|
||||
("\\bglVertex2i", "chromium.Vertex2i"),
|
||||
("\\bglVertex2iv", "chromium.Vertex2iv"),
|
||||
("\\bglVertex2s", "chromium.Vertex2s"),
|
||||
("\\bglVertex2sv", "chromium.Vertex2sv"),
|
||||
("\\bglVertex3d", "chromium.Vertex3d"),
|
||||
("\\bglVertex3dv", "chromium.Vertex3dv"),
|
||||
("\\bglVertex3f", "chromium.Vertex3f"),
|
||||
("\\bglVertex3fv", "chromium.Vertex3fv"),
|
||||
("\\bglVertex3i", "chromium.Vertex3i"),
|
||||
("\\bglVertex3iv", "chromium.Vertex3iv"),
|
||||
("\\bglVertex3s", "chromium.Vertex3s"),
|
||||
("\\bglVertex3sv", "chromium.Vertex3sv"),
|
||||
("\\bglVertex4d", "chromium.Vertex4d"),
|
||||
("\\bglVertex4dv", "chromium.Vertex4dv"),
|
||||
("\\bglVertex4f", "chromium.Vertex4f"),
|
||||
("\\bglVertex4fv", "chromium.Vertex4fv"),
|
||||
("\\bglVertex4i", "chromium.Vertex4i"),
|
||||
("\\bglVertex4iv", "chromium.Vertex4iv"),
|
||||
("\\bglVertex4s", "chromium.Vertex4s"),
|
||||
("\\bglVertex4sv", "chromium.Vertex4sv"),
|
||||
("\\bglVertexPointer", "chromium.VertexPointer"),
|
||||
("\\bglViewport", "chromium.Viewport"),
|
||||
("\\bglWriteback", "chromium.Writeback"),
|
||||
|
||||
|
||||
#define glAccum chromium.Accum
|
||||
#define glActiveTextureARB chromium.ActiveTextureARB
|
||||
#define glAlphaFunc chromium.AlphaFunc
|
||||
#define glAreTexturesResident chromium.AreTexturesResident
|
||||
#define glArrayElement chromium.ArrayElement
|
||||
#define glBarrierCreate chromium.BarrierCreate
|
||||
#define glBarrierDestroy chromium.BarrierDestroy
|
||||
#define glBarrierExec chromium.BarrierExec
|
||||
#define glBegin chromium.Begin
|
||||
#define glBindTexture chromium.BindTexture
|
||||
#define glBitmap chromium.Bitmap
|
||||
#define glBlendColorEXT chromium.BlendColorEXT
|
||||
#define glBlendEquationEXT chromium.BlendEquationEXT
|
||||
#define glBlendFunc chromium.BlendFunc
|
||||
#define glBoundsInfo chromium.BoundsInfo
|
||||
#define glCallList chromium.CallList
|
||||
#define glCallLists chromium.CallLists
|
||||
#define glChromiumParameterfCR chromium.ChromiumParameterfCR
|
||||
#define glChromiumParameteriCR chromium.ChromiumParameteriCR
|
||||
#define glChromiumParametervCR chromium.ChromiumParametervCR
|
||||
#define glClear chromium.Clear
|
||||
#define glClearAccum chromium.ClearAccum
|
||||
#define glClearColor chromium.ClearColor
|
||||
#define glClearDepth chromium.ClearDepth
|
||||
#define glClearIndex chromium.ClearIndex
|
||||
#define glClearStencil chromium.ClearStencil
|
||||
#define glClientActiveTextureARB chromium.ClientActiveTextureARB
|
||||
#define glClipPlane chromium.ClipPlane
|
||||
#define glColor3b chromium.Color3b
|
||||
#define glColor3bv chromium.Color3bv
|
||||
#define glColor3d chromium.Color3d
|
||||
#define glColor3dv chromium.Color3dv
|
||||
#define glColor3f chromium.Color3f
|
||||
#define glColor3fv chromium.Color3fv
|
||||
#define glColor3i chromium.Color3i
|
||||
#define glColor3iv chromium.Color3iv
|
||||
#define glColor3s chromium.Color3s
|
||||
#define glColor3sv chromium.Color3sv
|
||||
#define glColor3ub chromium.Color3ub
|
||||
#define glColor3ubv chromium.Color3ubv
|
||||
#define glColor3ui chromium.Color3ui
|
||||
#define glColor3uiv chromium.Color3uiv
|
||||
#define glColor3us chromium.Color3us
|
||||
#define glColor3usv chromium.Color3usv
|
||||
#define glColor4b chromium.Color4b
|
||||
#define glColor4bv chromium.Color4bv
|
||||
#define glColor4d chromium.Color4d
|
||||
#define glColor4dv chromium.Color4dv
|
||||
#define glColor4f chromium.Color4f
|
||||
#define glColor4fv chromium.Color4fv
|
||||
#define glColor4i chromium.Color4i
|
||||
#define glColor4iv chromium.Color4iv
|
||||
#define glColor4s chromium.Color4s
|
||||
#define glColor4sv chromium.Color4sv
|
||||
#define glColor4ub chromium.Color4ub
|
||||
#define glColor4ubv chromium.Color4ubv
|
||||
#define glColor4ui chromium.Color4ui
|
||||
#define glColor4uiv chromium.Color4uiv
|
||||
#define glColor4us chromium.Color4us
|
||||
#define glColor4usv chromium.Color4usv
|
||||
#define glColorMask chromium.ColorMask
|
||||
#define glColorMaterial chromium.ColorMaterial
|
||||
#define glColorPointer chromium.ColorPointer
|
||||
#define glCombinerInputNV chromium.CombinerInputNV
|
||||
#define glCombinerOutputNV chromium.CombinerOutputNV
|
||||
#define glCombinerParameterfNV chromium.CombinerParameterfNV
|
||||
#define glCombinerParameterfvNV chromium.CombinerParameterfvNV
|
||||
#define glCombinerParameteriNV chromium.CombinerParameteriNV
|
||||
#define glCombinerParameterivNV chromium.CombinerParameterivNV
|
||||
#define glCombinerStageParameterfvNV chromium.CombinerStageParameterfvNV
|
||||
#define glCopyPixels chromium.CopyPixels
|
||||
#define glCopyTexImage1D chromium.CopyTexImage1D
|
||||
#define glCopyTexImage2D chromium.CopyTexImage2D
|
||||
#define glCopyTexSubImage1D chromium.CopyTexSubImage1D
|
||||
#define glCopyTexSubImage2D chromium.CopyTexSubImage2D
|
||||
#define glCreateContext chromium.CreateContext
|
||||
#define glCullFace chromium.CullFace
|
||||
#define glDeleteLists chromium.DeleteLists
|
||||
#define glDeleteTextures chromium.DeleteTextures
|
||||
#define glDepthFunc chromium.DepthFunc
|
||||
#define glDepthMask chromium.DepthMask
|
||||
#define glDepthRange chromium.DepthRange
|
||||
#define glDestroyContext chromium.DestroyContext
|
||||
#define glDisable chromium.Disable
|
||||
#define glDisableClientState chromium.DisableClientState
|
||||
#define glDrawArrays chromium.DrawArrays
|
||||
#define glDrawBuffer chromium.DrawBuffer
|
||||
#define glDrawElements chromium.DrawElements
|
||||
#define glDrawPixels chromium.DrawPixels
|
||||
#define glDrawRangeElements chromium.DrawRangeElements
|
||||
#define glEdgeFlag chromium.EdgeFlag
|
||||
#define glEdgeFlagPointer chromium.EdgeFlagPointer
|
||||
#define glEdgeFlagv chromium.EdgeFlagv
|
||||
#define glEnable chromium.Enable
|
||||
#define glEnableClientState chromium.EnableClientState
|
||||
#define glEnd chromium.End
|
||||
#define glEndList chromium.EndList
|
||||
#define glEvalCoord1d chromium.EvalCoord1d
|
||||
#define glEvalCoord1dv chromium.EvalCoord1dv
|
||||
#define glEvalCoord1f chromium.EvalCoord1f
|
||||
#define glEvalCoord1fv chromium.EvalCoord1fv
|
||||
#define glEvalCoord2d chromium.EvalCoord2d
|
||||
#define glEvalCoord2dv chromium.EvalCoord2dv
|
||||
#define glEvalCoord2f chromium.EvalCoord2f
|
||||
#define glEvalCoord2fv chromium.EvalCoord2fv
|
||||
#define glEvalMesh1 chromium.EvalMesh1
|
||||
#define glEvalMesh2 chromium.EvalMesh2
|
||||
#define glEvalPoint1 chromium.EvalPoint1
|
||||
#define glEvalPoint2 chromium.EvalPoint2
|
||||
#define glFeedbackBuffer chromium.FeedbackBuffer
|
||||
#define glFinalCombinerInputNV chromium.FinalCombinerInputNV
|
||||
#define glFinish chromium.Finish
|
||||
#define glFlush chromium.Flush
|
||||
#define glFogf chromium.Fogf
|
||||
#define glFogfv chromium.Fogfv
|
||||
#define glFogi chromium.Fogi
|
||||
#define glFogiv chromium.Fogiv
|
||||
#define glFrontFace chromium.FrontFace
|
||||
#define glFrustum chromium.Frustum
|
||||
#define glGenLists chromium.GenLists
|
||||
#define glGenTextures chromium.GenTextures
|
||||
#define glGetBooleanv chromium.GetBooleanv
|
||||
#define glGetChromiumParametervCR chromium.GetChromiumParametervCR
|
||||
#define glGetClipPlane chromium.GetClipPlane
|
||||
#define glGetCombinerInputParameterfvNV chromium.GetCombinerInputParameterfvNV
|
||||
#define glGetCombinerInputParameterivNV chromium.GetCombinerInputParameterivNV
|
||||
#define glGetCombinerOutputParameterfvNV chromium.GetCombinerOutputParameterfvNV
|
||||
#define glGetCombinerOutputParameterivNV chromium.GetCombinerOutputParameterivNV
|
||||
#define glGetCombinerStageParameterfvNV chromium.GetCombinerStageParameterfvNV
|
||||
#define glGetDoublev chromium.GetDoublev
|
||||
#define glGetError chromium.GetError
|
||||
#define glGetFinalCombinerInputParameterfvNV chromium.GetFinalCombinerInputParameterfvNV
|
||||
#define glGetFinalCombinerInputParameterivNV chromium.GetFinalCombinerInputParameterivNV
|
||||
#define glGetFloatv chromium.GetFloatv
|
||||
#define glGetIntegerv chromium.GetIntegerv
|
||||
#define glGetLightfv chromium.GetLightfv
|
||||
#define glGetLightiv chromium.GetLightiv
|
||||
#define glGetMapdv chromium.GetMapdv
|
||||
#define glGetMapfv chromium.GetMapfv
|
||||
#define glGetMapiv chromium.GetMapiv
|
||||
#define glGetMaterialfv chromium.GetMaterialfv
|
||||
#define glGetMaterialiv chromium.GetMaterialiv
|
||||
#define glGetPixelMapfv chromium.GetPixelMapfv
|
||||
#define glGetPixelMapuiv chromium.GetPixelMapuiv
|
||||
#define glGetPixelMapusv chromium.GetPixelMapusv
|
||||
#define glGetPointerv chromium.GetPointerv
|
||||
#define glGetPolygonStipple chromium.GetPolygonStipple
|
||||
#define glGetString chromium.GetString
|
||||
#define glGetTexEnvfv chromium.GetTexEnvfv
|
||||
#define glGetTexEnviv chromium.GetTexEnviv
|
||||
#define glGetTexGendv chromium.GetTexGendv
|
||||
#define glGetTexGenfv chromium.GetTexGenfv
|
||||
#define glGetTexGeniv chromium.GetTexGeniv
|
||||
#define glGetTexImage chromium.GetTexImage
|
||||
#define glGetTexLevelParameterfv chromium.GetTexLevelParameterfv
|
||||
#define glGetTexLevelParameteriv chromium.GetTexLevelParameteriv
|
||||
#define glGetTexParameterfv chromium.GetTexParameterfv
|
||||
#define glGetTexParameteriv chromium.GetTexParameteriv
|
||||
#define glHint chromium.Hint
|
||||
#define glIndexMask chromium.IndexMask
|
||||
#define glIndexPointer chromium.IndexPointer
|
||||
#define glIndexd chromium.Indexd
|
||||
#define glIndexdv chromium.Indexdv
|
||||
#define glIndexf chromium.Indexf
|
||||
#define glIndexfv chromium.Indexfv
|
||||
#define glIndexi chromium.Indexi
|
||||
#define glIndexiv chromium.Indexiv
|
||||
#define glIndexs chromium.Indexs
|
||||
#define glIndexsv chromium.Indexsv
|
||||
#define glIndexub chromium.Indexub
|
||||
#define glIndexubv chromium.Indexubv
|
||||
#define glInitNames chromium.InitNames
|
||||
#define glInterleavedArrays chromium.InterleavedArrays
|
||||
#define glIsEnabled chromium.IsEnabled
|
||||
#define glIsList chromium.IsList
|
||||
#define glIsTexture chromium.IsTexture
|
||||
#define glLightModelf chromium.LightModelf
|
||||
#define glLightModelfv chromium.LightModelfv
|
||||
#define glLightModeli chromium.LightModeli
|
||||
#define glLightModeliv chromium.LightModeliv
|
||||
#define glLightf chromium.Lightf
|
||||
#define glLightfv chromium.Lightfv
|
||||
#define glLighti chromium.Lighti
|
||||
#define glLightiv chromium.Lightiv
|
||||
#define glLineStipple chromium.LineStipple
|
||||
#define glLineWidth chromium.LineWidth
|
||||
#define glListBase chromium.ListBase
|
||||
#define glLoadIdentity chromium.LoadIdentity
|
||||
#define glLoadMatrixd chromium.LoadMatrixd
|
||||
#define glLoadMatrixf chromium.LoadMatrixf
|
||||
#define glLoadName chromium.LoadName
|
||||
#define glLogicOp chromium.LogicOp
|
||||
#define glMakeCurrent chromium.MakeCurrent
|
||||
#define glMap1d chromium.Map1d
|
||||
#define glMap1f chromium.Map1f
|
||||
#define glMap2d chromium.Map2d
|
||||
#define glMap2f chromium.Map2f
|
||||
#define glMapGrid1d chromium.MapGrid1d
|
||||
#define glMapGrid1f chromium.MapGrid1f
|
||||
#define glMapGrid2d chromium.MapGrid2d
|
||||
#define glMapGrid2f chromium.MapGrid2f
|
||||
#define glMaterialf chromium.Materialf
|
||||
#define glMaterialfv chromium.Materialfv
|
||||
#define glMateriali chromium.Materiali
|
||||
#define glMaterialiv chromium.Materialiv
|
||||
#define glMatrixMode chromium.MatrixMode
|
||||
#define glMultMatrixd chromium.MultMatrixd
|
||||
#define glMultMatrixf chromium.MultMatrixf
|
||||
#define glMultiTexCoord1dARB chromium.MultiTexCoord1dARB
|
||||
#define glMultiTexCoord1dvARB chromium.MultiTexCoord1dvARB
|
||||
#define glMultiTexCoord1fARB chromium.MultiTexCoord1fARB
|
||||
#define glMultiTexCoord1fvARB chromium.MultiTexCoord1fvARB
|
||||
#define glMultiTexCoord1iARB chromium.MultiTexCoord1iARB
|
||||
#define glMultiTexCoord1ivARB chromium.MultiTexCoord1ivARB
|
||||
#define glMultiTexCoord1sARB chromium.MultiTexCoord1sARB
|
||||
#define glMultiTexCoord1svARB chromium.MultiTexCoord1svARB
|
||||
#define glMultiTexCoord2dARB chromium.MultiTexCoord2dARB
|
||||
#define glMultiTexCoord2dvARB chromium.MultiTexCoord2dvARB
|
||||
#define glMultiTexCoord2fARB chromium.MultiTexCoord2fARB
|
||||
#define glMultiTexCoord2fvARB chromium.MultiTexCoord2fvARB
|
||||
#define glMultiTexCoord2iARB chromium.MultiTexCoord2iARB
|
||||
#define glMultiTexCoord2ivARB chromium.MultiTexCoord2ivARB
|
||||
#define glMultiTexCoord2sARB chromium.MultiTexCoord2sARB
|
||||
#define glMultiTexCoord2svARB chromium.MultiTexCoord2svARB
|
||||
#define glMultiTexCoord3dARB chromium.MultiTexCoord3dARB
|
||||
#define glMultiTexCoord3dvARB chromium.MultiTexCoord3dvARB
|
||||
#define glMultiTexCoord3fARB chromium.MultiTexCoord3fARB
|
||||
#define glMultiTexCoord3fvARB chromium.MultiTexCoord3fvARB
|
||||
#define glMultiTexCoord3iARB chromium.MultiTexCoord3iARB
|
||||
#define glMultiTexCoord3ivARB chromium.MultiTexCoord3ivARB
|
||||
#define glMultiTexCoord3sARB chromium.MultiTexCoord3sARB
|
||||
#define glMultiTexCoord3svARB chromium.MultiTexCoord3svARB
|
||||
#define glMultiTexCoord4dARB chromium.MultiTexCoord4dARB
|
||||
#define glMultiTexCoord4dvARB chromium.MultiTexCoord4dvARB
|
||||
#define glMultiTexCoord4fARB chromium.MultiTexCoord4fARB
|
||||
#define glMultiTexCoord4fvARB chromium.MultiTexCoord4fvARB
|
||||
#define glMultiTexCoord4iARB chromium.MultiTexCoord4iARB
|
||||
#define glMultiTexCoord4ivARB chromium.MultiTexCoord4ivARB
|
||||
#define glMultiTexCoord4sARB chromium.MultiTexCoord4sARB
|
||||
#define glMultiTexCoord4svARB chromium.MultiTexCoord4svARB
|
||||
#define glNewList chromium.NewList
|
||||
#define glNormal3b chromium.Normal3b
|
||||
#define glNormal3bv chromium.Normal3bv
|
||||
#define glNormal3d chromium.Normal3d
|
||||
#define glNormal3dv chromium.Normal3dv
|
||||
#define glNormal3f chromium.Normal3f
|
||||
#define glNormal3fv chromium.Normal3fv
|
||||
#define glNormal3i chromium.Normal3i
|
||||
#define glNormal3iv chromium.Normal3iv
|
||||
#define glNormal3s chromium.Normal3s
|
||||
#define glNormal3sv chromium.Normal3sv
|
||||
#define glNormalPointer chromium.NormalPointer
|
||||
#define glOrtho chromium.Ortho
|
||||
#define glPassThrough chromium.PassThrough
|
||||
#define glPixelMapfv chromium.PixelMapfv
|
||||
#define glPixelMapuiv chromium.PixelMapuiv
|
||||
#define glPixelMapusv chromium.PixelMapusv
|
||||
#define glPixelStoref chromium.PixelStoref
|
||||
#define glPixelStorei chromium.PixelStorei
|
||||
#define glPixelTransferf chromium.PixelTransferf
|
||||
#define glPixelTransferi chromium.PixelTransferi
|
||||
#define glPixelZoom chromium.PixelZoom
|
||||
#define glPointSize chromium.PointSize
|
||||
#define glPolygonMode chromium.PolygonMode
|
||||
#define glPolygonOffset chromium.PolygonOffset
|
||||
#define glPolygonStipple chromium.PolygonStipple
|
||||
#define glPopAttrib chromium.PopAttrib
|
||||
#define glPopClientAttrib chromium.PopClientAttrib
|
||||
#define glPopMatrix chromium.PopMatrix
|
||||
#define glPopName chromium.PopName
|
||||
#define glPrioritizeTextures chromium.PrioritizeTextures
|
||||
#define glPushAttrib chromium.PushAttrib
|
||||
#define glPushClientAttrib chromium.PushClientAttrib
|
||||
#define glPushMatrix chromium.PushMatrix
|
||||
#define glPushName chromium.PushName
|
||||
#define glRasterPos2d chromium.RasterPos2d
|
||||
#define glRasterPos2dv chromium.RasterPos2dv
|
||||
#define glRasterPos2f chromium.RasterPos2f
|
||||
#define glRasterPos2fv chromium.RasterPos2fv
|
||||
#define glRasterPos2i chromium.RasterPos2i
|
||||
#define glRasterPos2iv chromium.RasterPos2iv
|
||||
#define glRasterPos2s chromium.RasterPos2s
|
||||
#define glRasterPos2sv chromium.RasterPos2sv
|
||||
#define glRasterPos3d chromium.RasterPos3d
|
||||
#define glRasterPos3dv chromium.RasterPos3dv
|
||||
#define glRasterPos3f chromium.RasterPos3f
|
||||
#define glRasterPos3fv chromium.RasterPos3fv
|
||||
#define glRasterPos3i chromium.RasterPos3i
|
||||
#define glRasterPos3iv chromium.RasterPos3iv
|
||||
#define glRasterPos3s chromium.RasterPos3s
|
||||
#define glRasterPos3sv chromium.RasterPos3sv
|
||||
#define glRasterPos4d chromium.RasterPos4d
|
||||
#define glRasterPos4dv chromium.RasterPos4dv
|
||||
#define glRasterPos4f chromium.RasterPos4f
|
||||
#define glRasterPos4fv chromium.RasterPos4fv
|
||||
#define glRasterPos4i chromium.RasterPos4i
|
||||
#define glRasterPos4iv chromium.RasterPos4iv
|
||||
#define glRasterPos4s chromium.RasterPos4s
|
||||
#define glRasterPos4sv chromium.RasterPos4sv
|
||||
#define glReadBuffer chromium.ReadBuffer
|
||||
#define glReadPixels chromium.ReadPixels
|
||||
#define glRectd chromium.Rectd
|
||||
#define glRectdv chromium.Rectdv
|
||||
#define glRectf chromium.Rectf
|
||||
#define glRectfv chromium.Rectfv
|
||||
#define glRecti chromium.Recti
|
||||
#define glRectiv chromium.Rectiv
|
||||
#define glRects chromium.Rects
|
||||
#define glRectsv chromium.Rectsv
|
||||
#define glRenderMode chromium.RenderMode
|
||||
#define glRotated chromium.Rotated
|
||||
#define glRotatef chromium.Rotatef
|
||||
#define glScaled chromium.Scaled
|
||||
#define glScalef chromium.Scalef
|
||||
#define glScissor chromium.Scissor
|
||||
#define glSecondaryColor3bEXT chromium.SecondaryColor3bEXT
|
||||
#define glSecondaryColor3bvEXT chromium.SecondaryColor3bvEXT
|
||||
#define glSecondaryColor3dEXT chromium.SecondaryColor3dEXT
|
||||
#define glSecondaryColor3dvEXT chromium.SecondaryColor3dvEXT
|
||||
#define glSecondaryColor3fEXT chromium.SecondaryColor3fEXT
|
||||
#define glSecondaryColor3fvEXT chromium.SecondaryColor3fvEXT
|
||||
#define glSecondaryColor3iEXT chromium.SecondaryColor3iEXT
|
||||
#define glSecondaryColor3ivEXT chromium.SecondaryColor3ivEXT
|
||||
#define glSecondaryColor3sEXT chromium.SecondaryColor3sEXT
|
||||
#define glSecondaryColor3svEXT chromium.SecondaryColor3svEXT
|
||||
#define glSecondaryColor3ubEXT chromium.SecondaryColor3ubEXT
|
||||
#define glSecondaryColor3ubvEXT chromium.SecondaryColor3ubvEXT
|
||||
#define glSecondaryColor3uiEXT chromium.SecondaryColor3uiEXT
|
||||
#define glSecondaryColor3uivEXT chromium.SecondaryColor3uivEXT
|
||||
#define glSecondaryColor3usEXT chromium.SecondaryColor3usEXT
|
||||
#define glSecondaryColor3usvEXT chromium.SecondaryColor3usvEXT
|
||||
#define glSecondaryColorPointerEXT chromium.SecondaryColorPointerEXT
|
||||
#define glSelectBuffer chromium.SelectBuffer
|
||||
#define glSemaphoreCreate chromium.SemaphoreCreate
|
||||
#define glSemaphoreDestroy chromium.SemaphoreDestroy
|
||||
#define glSemaphoreP chromium.SemaphoreP
|
||||
#define glSemaphoreV chromium.SemaphoreV
|
||||
#define glShadeModel chromium.ShadeModel
|
||||
#define glStencilFunc chromium.StencilFunc
|
||||
#define glStencilMask chromium.StencilMask
|
||||
#define glStencilOp chromium.StencilOp
|
||||
#define glSwapBuffers chromium.SwapBuffers
|
||||
#define glTexCoord1d chromium.TexCoord1d
|
||||
#define glTexCoord1dv chromium.TexCoord1dv
|
||||
#define glTexCoord1f chromium.TexCoord1f
|
||||
#define glTexCoord1fv chromium.TexCoord1fv
|
||||
#define glTexCoord1i chromium.TexCoord1i
|
||||
#define glTexCoord1iv chromium.TexCoord1iv
|
||||
#define glTexCoord1s chromium.TexCoord1s
|
||||
#define glTexCoord1sv chromium.TexCoord1sv
|
||||
#define glTexCoord2d chromium.TexCoord2d
|
||||
#define glTexCoord2dv chromium.TexCoord2dv
|
||||
#define glTexCoord2f chromium.TexCoord2f
|
||||
#define glTexCoord2fv chromium.TexCoord2fv
|
||||
#define glTexCoord2i chromium.TexCoord2i
|
||||
#define glTexCoord2iv chromium.TexCoord2iv
|
||||
#define glTexCoord2s chromium.TexCoord2s
|
||||
#define glTexCoord2sv chromium.TexCoord2sv
|
||||
#define glTexCoord3d chromium.TexCoord3d
|
||||
#define glTexCoord3dv chromium.TexCoord3dv
|
||||
#define glTexCoord3f chromium.TexCoord3f
|
||||
#define glTexCoord3fv chromium.TexCoord3fv
|
||||
#define glTexCoord3i chromium.TexCoord3i
|
||||
#define glTexCoord3iv chromium.TexCoord3iv
|
||||
#define glTexCoord3s chromium.TexCoord3s
|
||||
#define glTexCoord3sv chromium.TexCoord3sv
|
||||
#define glTexCoord4d chromium.TexCoord4d
|
||||
#define glTexCoord4dv chromium.TexCoord4dv
|
||||
#define glTexCoord4f chromium.TexCoord4f
|
||||
#define glTexCoord4fv chromium.TexCoord4fv
|
||||
#define glTexCoord4i chromium.TexCoord4i
|
||||
#define glTexCoord4iv chromium.TexCoord4iv
|
||||
#define glTexCoord4s chromium.TexCoord4s
|
||||
#define glTexCoord4sv chromium.TexCoord4sv
|
||||
#define glTexCoordPointer chromium.TexCoordPointer
|
||||
#define glTexEnvf chromium.TexEnvf
|
||||
#define glTexEnvfv chromium.TexEnvfv
|
||||
#define glTexEnvi chromium.TexEnvi
|
||||
#define glTexEnviv chromium.TexEnviv
|
||||
#define glTexGend chromium.TexGend
|
||||
#define glTexGendv chromium.TexGendv
|
||||
#define glTexGenf chromium.TexGenf
|
||||
#define glTexGenfv chromium.TexGenfv
|
||||
#define glTexGeni chromium.TexGeni
|
||||
#define glTexGeniv chromium.TexGeniv
|
||||
#define glTexImage1D chromium.TexImage1D
|
||||
#define glTexImage2D chromium.TexImage2D
|
||||
#define glTexParameterf chromium.TexParameterf
|
||||
#define glTexParameterfv chromium.TexParameterfv
|
||||
#define glTexParameteri chromium.TexParameteri
|
||||
#define glTexParameteriv chromium.TexParameteriv
|
||||
#define glTexSubImage1D chromium.TexSubImage1D
|
||||
#define glTexSubImage2D chromium.TexSubImage2D
|
||||
#define glTranslated chromium.Translated
|
||||
#define glTranslatef chromium.Translatef
|
||||
#define glVertex2d chromium.Vertex2d
|
||||
#define glVertex2dv chromium.Vertex2dv
|
||||
#define glVertex2f chromium.Vertex2f
|
||||
#define glVertex2fv chromium.Vertex2fv
|
||||
#define glVertex2i chromium.Vertex2i
|
||||
#define glVertex2iv chromium.Vertex2iv
|
||||
#define glVertex2s chromium.Vertex2s
|
||||
#define glVertex2sv chromium.Vertex2sv
|
||||
#define glVertex3d chromium.Vertex3d
|
||||
#define glVertex3dv chromium.Vertex3dv
|
||||
#define glVertex3f chromium.Vertex3f
|
||||
#define glVertex3fv chromium.Vertex3fv
|
||||
#define glVertex3i chromium.Vertex3i
|
||||
#define glVertex3iv chromium.Vertex3iv
|
||||
#define glVertex3s chromium.Vertex3s
|
||||
#define glVertex3sv chromium.Vertex3sv
|
||||
#define glVertex4d chromium.Vertex4d
|
||||
#define glVertex4dv chromium.Vertex4dv
|
||||
#define glVertex4f chromium.Vertex4f
|
||||
#define glVertex4fv chromium.Vertex4fv
|
||||
#define glVertex4i chromium.Vertex4i
|
||||
#define glVertex4iv chromium.Vertex4iv
|
||||
#define glVertex4s chromium.Vertex4s
|
||||
#define glVertex4sv chromium.Vertex4sv
|
||||
#define glVertexPointer chromium.VertexPointer
|
||||
#define glViewport chromium.Viewport
|
||||
#define glWriteback chromium.Writeback
|
||||
|
||||
|
||||
#define glgsg crgsg
|
||||
#define NotifyCategoryGetCategory_glgsg NotifyCategoryGetCategory_crgsg
|
||||
|
||||
#define gl_show_transforms cr_show_transforms
|
||||
#define gl_cheap_textures cr_cheap_textures
|
||||
#define gl_cull_traversal cr_cull_traversal
|
||||
#define gl_ignore_mipmaps cr_ignore_mipmaps
|
||||
#define gl_force_mipmaps cr_force_mipmaps
|
||||
#define gl_show_mipmaps cr_show_mipmaps
|
||||
#define gl_save_mipmaps cr_save_mipmaps
|
||||
#define gl_auto_normalize_lighting cr_auto_normalize_lighting
|
||||
#define gl_supports_bgr cr_supports_bgr
|
||||
|
||||
#define GLDecalType CRDecalType
|
||||
#define gl_decal_type cr_decal_type
|
||||
|
||||
#define init_libglgsg init_libcrgsg
|
||||
|
||||
|
||||
#define glgsg_cat crgsg_cat
|
||||
|
||||
#define GLGraphicsStateGuardian CRGraphicsStateGuardian
|
||||
#define GLTextureContext CRTextureContext
|
||||
#define GLGeomNodeContext CRGeomNodeContext
|
||||
#define GLSavedFrameBuffer CRSavedFrameBuffer
|
||||
|
||||
#define make_GlGraphicsStateGuardian make_CRGraphicsStateGuardian
|
||||
|
||||
"""
|
3296
panda/src/crgsg/crext.h
Normal file
3296
panda/src/crgsg/crext.h
Normal file
File diff suppressed because it is too large
Load Diff
5
panda/src/crgsg/crgsg_composite1.cxx
Normal file
5
panda/src/crgsg/crgsg_composite1.cxx
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
#include "config_crgsg.cxx"
|
||||
#include "crSavedFrameBuffer.cxx"
|
||||
#include "crGeomNodeContext.cxx"
|
||||
#include "crTextureContext.cxx"
|
6
panda/src/crgsg/index.html
Normal file
6
panda/src/crgsg/index.html
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
<h1> CR GSG </h1>
|
||||
|
||||
<p> The Chromium Graphics State Guardian. </p>
|
||||
|
||||
<p> CR is an abbreviation for Chromium. <p>
|
9
panda/src/wcrdisplay/index.html
Normal file
9
panda/src/wcrdisplay/index.html
Normal file
@ -0,0 +1,9 @@
|
||||
<h3>wcrdisplay</h3>
|
||||
Windows Chromium Display
|
||||
<p>
|
||||
This directory contains pipe and window creation code for using
|
||||
<a href="http://sourceforge.net/projects/chromium">chromium</a> within
|
||||
panda.
|
||||
<p>
|
||||
The plan is that chromium (network gl) and gl (local gl) will
|
||||
run together.
|
Loading…
x
Reference in New Issue
Block a user