use drawprimstrided for non-index geoms

This commit is contained in:
georges 2001-02-15 00:33:11 +00:00
parent fcd294217f
commit 11fcdd0883
2 changed files with 712 additions and 451 deletions

File diff suppressed because it is too large Load Diff

View File

@ -10,6 +10,8 @@
#include <pandabase.h>
#define D3D_OVERLOADS // get D3DVECTOR '+' operator, etc from d3dtypes.h
#include <graphicsStateGuardian.h>
#include <geomprimitives.h>
#include <texture.h>
@ -35,6 +37,7 @@ extern char * ConvD3DErrorToString(const HRESULT &error); // defined in wdxGra
#include <windows.h>
#undef WIN32_LEAN_AND_MEAN
#include <ddraw.h>
#include <d3d.h>
@ -184,9 +187,8 @@ protected:
void bind_texture(TextureContext *tc);
// for storage of the flexible vertex format
char *_fvf_buf;
char *_sav_fvf; // base of malloced array
INLINE void add_to_FVF(void *data, size_t bytes) ;
char *_pCurFvfBufPtr,*_pFvfBufBasePtr;
INLINE void add_to_FVFBuf(void *data, size_t bytes) ;
WORD *_index_buf; // base of malloced array
bool _dx_ready;
@ -221,6 +223,7 @@ protected:
INLINE void enable_color_material(bool val);
INLINE void enable_clip_plane(int clip_plane, bool val);
INLINE void enable_fog(bool val);
INLINE void set_shademode(D3DSHADEMODE val);
/* INLINE void enable_multisample_alpha_one(bool val);
INLINE void enable_multisample_alpha_mask(bool val);
@ -305,6 +308,8 @@ protected:
bool _issued_color_enabled; // WBD ADDED
D3DCOLOR _issued_color; // WBD ADDED
D3DSHADEMODE _CurShadeMode;
bool _multisample_enabled;
bool _line_smooth_enabled;
bool _point_smooth_enabled;