Commit graph

43 commits

Author SHA1 Message Date
UnknownShadow200
e395eae957 Added BeginFrame/EndFrame to IGraphicsApi. 2015-06-05 17:52:45 +10:00
UnknownShadow200
bdd41a8f24 Update to latest OpenTK. 2015-06-05 17:48:25 +10:00
UnknownShadow200
e1ad415031 Update Direct3D api again (untested). 2015-06-04 06:16:35 +10:00
UnknownShadow200
2c18ebc5bb Add offset parameter to DrawVb/DrawVbBatch. 2015-06-01 06:17:09 +10:00
UnknownShadow200
aba1ae465c Remove IndexedVbInfo, trim 'Vertex' from VertexFormat enum. 2015-05-31 17:00:34 +10:00
UnknownShadow200
c8ace076f5 Use single DrawVb method. 2015-05-31 16:58:45 +10:00
UnknownShadow200
0889c5f4df Use dynamic VBOs instead of immediate mode. 2015-05-31 12:59:03 +10:00
UnknownShadow200
ab42202a34 Downgrade to C# 3.0, use shorthand array initialisers where possible. 2015-05-31 08:57:05 +10:00
UnknownShadow200
0cd3f22415 Remove unused draw modes, remove BlendEquation enum. 2015-05-31 08:51:33 +10:00
UnknownShadow200
72609bf2f1 Remove specifying DrawMode for VBs. (as this was only used by display lists) 2015-05-31 07:21:41 +10:00
UnknownShadow200
0ce5c0e503 Separate VBs from IBs 2015-05-31 07:18:30 +10:00
UnknownShadow200
eba9da7cf6 Remove display list support. (Display list support is still in DLCompatibility branch) 2015-05-31 07:10:24 +10:00
UnknownShadow200
e2289b1a92 Simplification in TextureAtlas2D, added overload to IGraphicsApi.LoadTexture that accepts IntPtr and specified size. 2015-05-27 16:34:21 +10:00
UnknownShadow200
22899a2613 Remove unused AlphaBlendEq. 2015-05-23 12:52:58 +10:00
UnknownShadow200
6a41700cc5 Consistent newlines. 2015-05-23 07:38:40 +10:00
UnknownShadow200
c2b6ee83b1 Remove support for non power of two textures. 2015-05-23 06:16:17 +10:00
UnknownShadow200
b0b7285953 Remove DrawVertices overloads in IGraphicsApi that doesn't specify a count, remove unused Vector3 DrawVertices method. 2015-05-22 17:49:28 +10:00
UnknownShadow200
345df89a45 Add method to check if texture IDs and vertex buffer IDs are valid. 2015-05-16 07:36:55 +10:00
UnknownShadow200
bc77db70e3 Reset texture ids to -1 in DeleteTexture(). 2015-05-14 06:40:33 +10:00
UnknownShadow200
bb2a55944f Minimise allocation of FastBitmaps. 2015-05-10 07:29:01 +10:00
UnknownShadow200
512657e009 Remove unused ambient lighting code. 2015-05-07 16:27:54 +10:00
UnknownShadow200
7b0aa1482d Cache Action<> constructor calls. 2015-04-27 06:39:58 +10:00
UnknownShadow200
7dcfb4526a Fix display lists. (oops) 2015-04-26 19:53:10 +10:00
UnknownShadow200
08b7bdb854 Less hardcoding. 2015-04-26 08:26:31 +10:00
UnknownShadow200
68d1fd4249 [broken] Start work on indexed drawing. 2015-04-26 07:36:33 +10:00
UnknownShadow200
7363211f39 reduce VBO drawing overhead. 2015-04-25 08:23:20 +10:00
UnknownShadow200
aaebb72014 Add indexed drawing functions, make indexed drawing Pos3fTex2fCol4b only. 2015-04-25 08:07:23 +10:00
UnknownShadow200
5dfd6c02fe Reduce duplication of enabling/disabling client state. 2015-04-25 07:57:08 +10:00
UnknownShadow200
d48fe34c21 Remove VertexPos3f. 2015-04-25 07:51:40 +10:00
UnknownShadow200
fad0a17199 Use Vector4 instead of float[] in SetAmbientColour. 2015-04-25 07:46:21 +10:00
UnknownShadow200
8cb927ae0d Fix indexed display lists. (oops) 2015-04-25 07:39:17 +10:00
UnknownShadow200
75d88ddeb2 Combine AlphaFunc and DepthFunc into CompareFunc, start work on supporting indexed drawing. 2015-04-25 07:37:47 +10:00
UnknownShadow200
138420c538 Make OpenGL VBO drawing simpler. 2015-04-23 06:56:50 +10:00
UnknownShadow200
8adfbc6cc6 More efficiency improvements. 2015-04-04 11:10:26 +11:00
UnknownShadow200
5cd1939f65 Simplify display list creation for OpenGL. 2015-04-02 10:09:14 +11:00
UnknownShadow200
3e0d217e48 Don't use GLX_ extension string. 2015-04-02 09:56:28 +11:00
UnknownShadow200
5f05ed73e4 Use face culling. (Breaks sprites though) 2015-01-14 13:48:55 +11:00
UnknownShadow200
40d586c057 Use Arb.DeleteBuffers(), remove duplicate screenshot code. 2015-01-06 19:18:19 +11:00
UnknownShadow200
b1690d75ab Remove last OpenGL call outside of OpenGLApi class. 2015-01-06 10:54:52 +11:00
UnknownShadow200
24ec46f37b Add block model, remove debug things from chicken model, add overload for DrawVertices. 2015-01-04 12:13:07 +11:00
UnknownShadow200
55aade0f39 Simplify cloud rendering, some other minor simplifications. 2015-01-01 17:04:55 +11:00
UnknownShadow200
d0f6fb0360 Fix display lists with non-triangle draw modes, move mesh builder state updating to OnNewMapLoaded. 2015-01-01 15:29:32 +11:00
UnknownShadow200
423d365267 Add everything. 2014-12-17 14:47:17 +11:00