aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-core/src/main/java
diff options
context:
space:
mode:
authorJulien Gouesse <[email protected]>2013-03-22 00:00:14 +0100
committerJulien Gouesse <[email protected]>2013-03-22 00:00:14 +0100
commitd664910383e7520e259ad13f0d204e1840e26a8e (patch)
tree27f55da682dff477a239af81e44054442ed72560 /ardor3d-core/src/main/java
parentc8c544dbfea4e7047d5a91577c637bd757e6ac0b (diff)
Adds OpenGL-ES 2.0 support, prepares the use of PMVMatrix (work in progress)
Diffstat (limited to 'ardor3d-core/src/main/java')
-rw-r--r--ardor3d-core/src/main/java/com/ardor3d/renderer/RenderContext.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/ardor3d-core/src/main/java/com/ardor3d/renderer/RenderContext.java b/ardor3d-core/src/main/java/com/ardor3d/renderer/RenderContext.java
index 83f3392..ef522a3 100644
--- a/ardor3d-core/src/main/java/com/ardor3d/renderer/RenderContext.java
+++ b/ardor3d-core/src/main/java/com/ardor3d/renderer/RenderContext.java
@@ -41,7 +41,7 @@ public class RenderContext {
RenderState.StateType.class);
protected final LineRecord _lineRecord = new LineRecord();
- protected final RendererRecord _rendererRecord = new RendererRecord();
+ protected final RendererRecord _rendererRecord = createRendererRecord();
/** Basically this object represents the sharable portion of a GL context... Textures, displayLists, etc. */
protected final Object _glContextRep;
@@ -64,6 +64,11 @@ public class RenderContext {
_glContextRep = (shared == null) ? new Object() : shared._glContextRep;
}
+ protected RendererRecord createRendererRecord() {
+ final RendererRecord rendererRecord = new RendererRecord();
+ return rendererRecord;
+ }
+
protected void setupRecords() {
for (final RenderState.StateType type : RenderState.StateType.values()) {
_stateRecords.put(type, RenderState.createState(type).createStateRecord());