瀏覽代碼

add draw_sphere, fix indexed pntlists

georges 25 年之前
父節點
當前提交
46f3d4120b
共有 2 個文件被更改,包括 348 次插入435 次删除
  1. 343 435
      panda/src/dxgsg/dxGraphicsStateGuardian.cxx
  2. 5 0
      panda/src/dxgsg/dxGraphicsStateGuardian.h

文件差異過大導致無法顯示
+ 343 - 435
panda/src/dxgsg/dxGraphicsStateGuardian.cxx


+ 5 - 0
panda/src/dxgsg/dxGraphicsStateGuardian.h

@@ -213,6 +213,11 @@ protected:
   D3DDEVICEDESC7    _D3DDevDesc;
   D3DDEVICEDESC7    _D3DDevDesc;
 
 
   void set_clipper(RECT cliprect);
   void set_clipper(RECT cliprect);
+  void GenerateSphere(void *pVertexSpace,DWORD dwVertSpaceByteSize,
+					void *pIndexSpace,DWORD dwIndexSpaceByteSize,
+					D3DVECTOR *pCenter, float fRadius, 
+					DWORD wNumRings, DWORD wNumSections, float sx, float sy, float sz,
+					DWORD *pNumVertices,DWORD *pNumIndices,DWORD fvfFlags,DWORD dwVertSize);
 
 
   INLINE void set_pack_alignment(int alignment);
   INLINE void set_pack_alignment(int alignment);
   INLINE void set_unpack_alignment(int alignment);
   INLINE void set_unpack_alignment(int alignment);

部分文件因文件數量過多而無法顯示