Changeset 1229
- Timestamp:
- Apr 15, 2012, 1:27:45 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/deushax/deushax.cpp
r1040 r1229 41 41 new DebugFps(10, 10); 42 42 new DebugSprite(game); 43 new DebugSphere();43 //new DebugSphere(); 44 44 //new DebugRecord("lolengine.ogm", FPS); 45 45 new DebugStats("stats.txt"); -
trunk/src/gradient.cpp
r1228 r1229 15 15 #include <cmath> 16 16 17 #ifdef WIN32 18 # define WIN32_LEAN_AND_MEAN 19 # include <windows.h> 20 # if defined USE_D3D9 21 # include <algorithm> 22 using std::min; 23 using std::max; 24 # include <d3d9.h> 25 # include <d3dx9shader.h> 26 # endif 27 #endif 28 17 29 #include "core.h" 18 30 #include "lolgl.h" 19 31 20 32 using namespace std; 33 34 #if defined USE_D3D9 35 extern IDirect3DDevice9 *g_d3ddevice; 36 #elif defined _XBOX 37 extern D3DDevice *g_d3ddevice; 38 #endif 21 39 22 40 namespace lol … … 204 222 205 223 /* Draw arrays */ 224 #if defined _XBOX || defined USE_D3D9 225 g_d3ddevice->DrawPrimitive(D3DPT_TRIANGLELIST, 0, 2); 226 #else 206 227 glDrawArrays(GL_TRIANGLES, 0, 6); 228 #endif 207 229 } 208 230 -
trunk/test/tutorial/tut03.cpp
r1228 r1229 428 428 virtual void TickDraw(float deltams) 429 429 { 430 Log::Error("Tick Fractal\n");431 430 WorldEntity::TickDraw(deltams); 432 431 … … 608 607 "}" 609 608 #else 610 "void main(float 4a_Vertex : POSITION,"609 "void main(float2 a_Vertex : POSITION," 611 610 " float2 a_TexCoord : TEXCOORD0," 612 611 " uniform float4x4 u_ZoomSettings," … … 619 618 " out float4 v_IndexY : TEXCOORD3)" 620 619 "{" 621 " out_Position = a_Vertex;"620 " out_Position = float4(a_Vertex, 0.0, 1.0);" 622 621 " float4 offsets = float4(0.5, -0.5, 0.015625, -0.015625);" 623 622 " float4 zoomscale = float4(u_ZoomSettings[2][0]," … … 746 745 #if defined _XBOX || defined USE_D3D9 747 746 g_d3ddevice->SetTexture(0, m_tex); 748 //g_d3ddevice->SetRenderState(D3DRS_CULLMODE, D3DCULL_CW); 749 g_d3ddevice->SetRenderState(D3DRS_CULLMODE, D3DCULL_NONE); 747 g_d3ddevice->SetRenderState(D3DRS_CULLMODE, D3DCULL_CW); 750 748 #elif !defined __CELLOS_LV2__ && !defined __ANDROID__ 751 749 #else … … 757 755 758 756 #if defined _XBOX || defined USE_D3D9 759 /* FIXME: what the fuck? Why does "2" not work here instead of 3? */ 760 g_d3ddevice->DrawPrimitive(D3DPT_TRIANGLELIST, 0, 3); 757 g_d3ddevice->DrawPrimitive(D3DPT_TRIANGLELIST, 0, 2); 761 758 #else 762 759 glDrawArrays(GL_TRIANGLES, 0, 6); … … 778 775 //glDisableClientState(GL_TEXTURE_COORD_ARRAY); 779 776 #endif 780 Log::Error("~Tick Fractal\n");781 777 } 782 778
Note: See TracChangeset
for help on using the changeset viewer.