Commit Graph

737 Commits

Author SHA1 Message Date
Lynix 984ade783a Added Renderer::DrawFullscreenQuad
Made [Color|Texture]Background use a new shader-based algorithm


Former-commit-id: cfd319b33712c270726eb697e258d61db2ca6835
2013-06-27 12:54:20 +02:00
Lynix 1a6e55881b Renamed Background to AbstractBackground
Former-commit-id: c99ed2e48c4d82fb1100f412a85468c698142815
2013-06-27 12:53:04 +02:00
Lynix 308c2cfd78 Decreased useless OpenGL calls (Optimization)
Former-commit-id: b07c32afa9aa98b91eb8bd146a175f693af539ed
2013-06-27 12:50:38 +02:00
Lynix 5b33a992ad Fixed MaterialDiffuse not used without lighting
Former-commit-id: b60d410dcc04b1e9f4d5f55a03390c007539dcec
2013-06-26 20:15:55 +02:00
Lynix abe56631dd Changed default material
Former-commit-id: 60fe21986d8cdd22e89ea4ccfbb9c5b33ba8eed6
2013-06-26 19:59:34 +02:00
Lynix 57e12a2625 Fixed box generation
Former-commit-id: 99534bcd90ffb81ba362ea2c709d68b643a9bdbb
2013-06-26 18:55:09 +02:00
Lynix 245d6e105e Experimental new algorithm to sort transparents objets
Former-commit-id: ad8704584598e1edcd3699d234abaa132d88e581
2013-06-26 15:20:07 +02:00
Lynix f9c9c67076 Fixed depth buffer sometimes not cleared
Former-commit-id: a5bda481479a51787601549a306f3a6b809c6afb
2013-06-26 15:19:29 +02:00
Lynix 0ece160382 Fixed error messages
Former-commit-id: 401e78d1e3903210916abf9b7d70a858df805fe2
2013-06-26 15:19:01 +02:00
Lynix 844c6d7d3d Potential optimization
Former-commit-id: 85a2f1836e459a66a29cad5f417f6839390b461b
2013-06-26 15:18:54 +02:00
Lynix d7a66d08b6 OBJLoader now support transparency
Mesh::AddSubMesh no longer return bool

Former-commit-id: 71217618d179c5853683f4615901565cb7cd3ab8
2013-06-26 15:17:53 +02:00
Lynix f3603a0b31 Fixed model using last mesh materials for new mesh
Former-commit-id: 91bd231b45b701b18d6e86eab74afbd141a51ded
2013-06-25 14:50:38 +02:00
Lynix 9a3616f538 Meshes have at least one material
Former-commit-id: c1b7fc15541e4e7f6a5eb1b25220dee2978fe9c5
2013-06-25 14:50:14 +02:00
Lynix b7c4d607ce Improved interface of Primitive
Former-commit-id: bcd4f2eb247c8f7fb59d864884e6ecda5f60afb1
2013-06-25 14:06:04 +02:00
Lynix 0bd70f8df1 Readded DebugDrawer::Draw[Binormals|Normals|Tangent]
Former-commit-id: 7e5f98670914da0618d40b2e5fcf49b66f0627a1
2013-06-25 00:31:31 +02:00
Lynix 3b88cd936c Fixed bug with threads and OpenGL contexts
Former-commit-id: 044923d57873f4e1a1eb4001395a83dbe97aabed
2013-06-25 00:26:18 +02:00
Lynix 0e3a4fa90b Updated physics module (Still experimental)
Former-commit-id: 4852b7cf6eca5ba3177397586877fe3d3c39dbd9
2013-06-24 13:33:54 +02:00
Lynix 050f9c2eb7 Fixed (?) potential bug with Shader::SendTexture
Former-commit-id: bd59f728396589aec5a420d675cf290019c0c042
2013-06-24 00:31:57 +02:00
Lynix e78db0feca Fixed MD5Anim loaders not being unregistred
Former-commit-id: b9414a479bdb3aff1560c606239bc1ee79c053f9
2013-06-24 00:29:59 +02:00
Lynix 44fdb48384 OpenGL's VAOs are now used the right way
Former-commit-id: 04a944b55d7406bc6028a2d90a5550b0d5e888f0
2013-06-24 00:24:22 +02:00
Lynix 3609f31708 Added std::hash for String, made use of unordered_map
Former-commit-id: 20f3d12bc3222873706949f0a7d0a131e237a247
2013-06-23 16:53:37 +02:00
Lynix 3e82794b70 Fixed warning with AMD drivers
Occured when deleting a shader created by a deleted context, but since
shaders are shareable, this should not be an issue (OpenGL 4.2: D.1.1)


Former-commit-id: 2427ec045bbb9d7415aaa4f8670b724601a07fe3
2013-06-23 13:17:39 +02:00
Lynix 00c2e824d1 The OpenGL wrapper now handles context change
Fixed some bugs
Thanks to Raakz


Former-commit-id: f156ba7aa3307cccd83c9c02987dadad02cd8185
2013-06-21 01:28:11 +02:00
Lynix cca920e597 Enabled GCC vectorization
Former-commit-id: f585c662924d7167457373633ee0df424bbe9cdb
2013-06-19 15:23:40 +02:00
Lynix 35dec6160a Removed useless code
Former-commit-id: 620d12e1e2a0d5c53d9190cd096086e210b08e47
2013-06-19 14:59:11 +02:00
Lynix 17c9461610 Optimized String::GetWord (2x faster)
Former-commit-id: 9257614bff0d2a38d089f8073ce7f7de2fa51467
2013-06-19 14:59:02 +02:00
Lynix 3f9faa3a5a Fixed stack corruption
Former-commit-id: 0ec71c8cc8f69d3dbf3b8ffda6556a9eebfeac1e
2013-06-19 14:33:06 +02:00
Lynix b0c46b2384 Revised String class
Renamed String::Substr to SubString


Former-commit-id: 6aa925799e71af6916f7808368a3faa26efbe1bc
2013-06-19 02:25:19 +02:00
Lynix c1e57c829c Added experimental implementation of ByteArrays
Former-commit-id: c95729bb45059c199344471a61042d98090034c8
2013-06-18 21:07:53 +02:00
Lynix ebf402f138 Added GetNearestPowerOfTwo
Former-commit-id: 609d470e8478c659b816ad7d34fb9d56ad551b07
2013-06-18 21:06:41 +02:00
Lynix 5886238e2e Fixed srcBlend not being updated
Former-commit-id: 84ae24fdc116c48b91b356810d3637b6510f971e
2013-06-18 18:31:30 +02:00
Lynix 274aa96037 Fixed condition (Thanks to Raakz)
Former-commit-id: 57b41719ccfea5d60ca4edb79da5b2f0548a56d5
2013-06-18 18:28:54 +02:00
Lynix a5fb0c804f Small improvements to FirstScene's camera
Former-commit-id: 80545964ee9ab8693f43992b4c4a2610e93e78c9
2013-06-18 16:56:49 +02:00
Lynix 880c2aa32c Plane primitives no longer rely on normal vector
Former-commit-id: 66e1e2a83799055ad773f7b145e569469f68279a
2013-06-18 16:39:46 +02:00
Lynix 433c36f176 Fixed bounding volume not being updated
Former-commit-id: 809faf0ed66916b1598cca11f749b31961f2e184
2013-06-18 16:38:30 +02:00
Lynix 6cd6bc8ab8 Merge branch 'master' of github.com:DigitalPulseSoftware/NazaraEngine
Former-commit-id: 1c06efaa50674230e456fe104843a87c02f999aa
2013-06-18 02:36:50 +02:00
Lynix ca758f9682 Fixed DebugDrawer drawing black lines and points
Former-commit-id: 800ef6a53263bb18d8ca798e421c80309e8c9315
2013-06-18 02:30:01 +02:00
Lynix 3e8ed9b1e4 Fixed conflict between VAO and OpenGL::BindBuffer
Former-commit-id: b1182e3b0327a73431a8e81106df9109e9a80cc2
2013-06-18 02:29:31 +02:00
Lynix 9e906c2568 Fixed gl(LineWidth/Pointsize) useless calls
Former-commit-id: 6636228886473d140981ed23db0d5dc9781535d4
2013-06-18 01:07:53 +02:00
Lynix 6c659410cd Made use of RenderState
Former-commit-id: 500aba0d0dd60e7371dea6c219d6a5ccfdcbadf8
2013-06-18 00:38:18 +02:00
Lynix 88d3ec1ad1 Refactored Material interface
Former-commit-id: 9a00be1b73b2c879fc77c9fdddc0192baa241fda
2013-06-18 00:37:40 +02:00
Lynix 7a45ff4884 Added RenderStates
Former-commit-id: c742cf2fc1cac807b9e2bcbd88c2b3d77327c106
2013-06-17 23:58:45 +02:00
Lynix 84cb7cb731 Cleaned LuaClass code
Former-commit-id: bba27b339435b22773255f9f69c55968505454ba
2013-06-17 23:58:17 +02:00
Lynix 783e609c8e Fixed warnings and optimized noise module
Former-commit-id: 62840540e2938d08436a22d4e19d801466f1d6ba
2013-06-17 23:58:06 +02:00
Lynix 84613b4306 Cleaned LuaClass code
Former-commit-id: 353ba8ea134cbbd4fa72a120ec1e8e218acd0c21
2013-06-17 17:29:52 +02:00
Lynix 6ccde01bee Fixed United build option not including all files (Close #13)
Former-commit-id: 8e9da1c6fa7e65ac5285abdd3f358c033c9f2174
2013-06-17 17:29:33 +02:00
Lynix 5e7a6b3a21 Removed thread-safety part of VertexDeclarations
No longer required since atomic integers


Former-commit-id: 7c08391a1feee7858eb800789d7c325d2ad0b211
2013-06-15 16:22:26 +02:00
Lynix b44be269c1 Improved Renderer
Faster VAO search
Resistance against texture operation during rendering


Former-commit-id: ad9ec2f0ef81a88cb841add227d6d8fb3ee40d42
2013-06-15 16:21:57 +02:00
Lynix 8595a110a4 Fixed compilation warning (C-style cast)
Former-commit-id: 063414bfd23047ce05010546f3cfe5188bd8e9b7
2013-06-15 16:11:37 +02:00
Lynix 54bc1d77fd Removed useless config defines
Former-commit-id: 37daf78c04fe1e810ab4e0ca6880c857797f7020
2013-06-15 16:11:19 +02:00