ruby-ogre 0.0.3-x86-linux → 0.0.4-x86-linux
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +7 -8
- data/bindings/ogre/interface/ogre_all.i +1 -0
- data/bindings/ogre/interface/ogre_wrap.cpp +591 -46
- data/bindings/ogre/interface/ogre_wrap.o +0 -0
- data/bindings/ogrebites/interface/ogrebites_wrap.o +0 -0
- data/bindings/procedural/interface/procedural_wrap.o +0 -0
- data/deps/include/OGRE/OgreAny.h +23 -1
- data/deps/include/OGRE/OgreBillboardChain.h +5 -1
- data/deps/include/OGRE/OgreBillboardParticleRenderer.h +2 -0
- data/deps/include/OGRE/OgreConfigDialog.h +0 -2
- data/deps/include/OGRE/OgreDynLib.h +1 -7
- data/deps/include/OGRE/OgreErrorDialog.h +0 -2
- data/deps/include/OGRE/OgreHeaderSuffix.h +3 -3
- data/deps/include/OGRE/OgreInstanceBatch.h +4 -0
- data/deps/include/OGRE/OgreInstanceManager.h +5 -0
- data/deps/include/OGRE/OgreIteratorRange.h +13 -2
- data/deps/include/OGRE/OgreParticleSystem.h +2 -0
- data/deps/include/OGRE/OgreParticleSystemRenderer.h +4 -0
- data/deps/include/OGRE/OgrePlatform.h +5 -28
- data/deps/include/OGRE/OgrePrerequisites.h +1 -1
- data/deps/include/OGRE/OgreProfiler.h +102 -59
- data/deps/include/OGRE/OgreProgressiveMesh.h +2 -2
- data/deps/include/OGRE/OgreRenderSystem.h +18 -1
- data/deps/include/OGRE/OgreRoot.h +1 -1
- data/deps/include/OGRE/OgreSearchOps.h +0 -5
- data/deps/include/OGRE/OgreSimpleRenderable.h +1 -1
- data/deps/include/OGRE/OgreStdHeaders.h +2 -2
- data/deps/include/OGRE/OgreStringConverter.h +5 -0
- data/deps/include/OGRE/OgreTimer.h +1 -1
- data/deps/include/OGRE/OgreUTFString.h +0 -2
- data/deps/include/OGRE/OgreWindowEventUtilities.h +3 -1
- data/deps/include/OGRE/OgreWorkQueue.h +2 -2
- data/deps/include/OGRE/RTShaderSystem/OgreShaderCGProgramProcessor.h +5 -5
- data/deps/include/OGRE/RTShaderSystem/OgreShaderCGProgramWriter.h +17 -15
- data/deps/include/OGRE/RTShaderSystem/OgreShaderExDualQuaternionSkinning.h +3 -3
- data/deps/include/OGRE/RTShaderSystem/OgreShaderExHardwareSkinning.h +5 -4
- data/deps/include/OGRE/RTShaderSystem/OgreShaderExHardwareSkinningTechnique.h +3 -3
- data/deps/include/OGRE/RTShaderSystem/OgreShaderExIntegratedPSSM3.h +50 -32
- data/deps/include/OGRE/RTShaderSystem/OgreShaderExLayeredBlending.h +13 -9
- data/deps/include/OGRE/RTShaderSystem/OgreShaderExLinearSkinning.h +7 -7
- data/deps/include/OGRE/RTShaderSystem/OgreShaderExNormalMapLighting.h +149 -95
- data/deps/include/OGRE/RTShaderSystem/OgreShaderExPerPixelLighting.h +91 -59
- data/deps/include/OGRE/RTShaderSystem/OgreShaderExTextureAtlasSampler.h +14 -9
- data/deps/include/OGRE/RTShaderSystem/OgreShaderFFPColour.h +33 -24
- data/deps/include/OGRE/RTShaderSystem/OgreShaderFFPFog.h +44 -30
- data/deps/include/OGRE/RTShaderSystem/OgreShaderFFPLighting.h +70 -45
- data/deps/include/OGRE/RTShaderSystem/OgreShaderFFPRenderStateBuilder.h +11 -10
- data/deps/include/OGRE/RTShaderSystem/OgreShaderFFPTexturing.h +73 -64
- data/deps/include/OGRE/RTShaderSystem/OgreShaderFFPTransform.h +8 -8
- data/deps/include/OGRE/RTShaderSystem/OgreShaderFunction.h +42 -35
- data/deps/include/OGRE/RTShaderSystem/OgreShaderFunctionAtom.h +38 -32
- data/deps/include/OGRE/RTShaderSystem/OgreShaderGLSLESProgramProcessor.h +9 -8
- data/deps/include/OGRE/RTShaderSystem/OgreShaderGLSLESProgramWriter.h +45 -36
- data/deps/include/OGRE/RTShaderSystem/OgreShaderGLSLProgramProcessor.h +9 -8
- data/deps/include/OGRE/RTShaderSystem/OgreShaderGLSLProgramWriter.h +26 -20
- data/deps/include/OGRE/RTShaderSystem/OgreShaderGenerator.h +211 -160
- data/deps/include/OGRE/RTShaderSystem/OgreShaderHLSLProgramProcessor.h +5 -5
- data/deps/include/OGRE/RTShaderSystem/OgreShaderHLSLProgramWriter.h +17 -15
- data/deps/include/OGRE/RTShaderSystem/OgreShaderMaterialSerializerListener.h +5 -3
- data/deps/include/OGRE/RTShaderSystem/OgreShaderParameter.h +86 -73
- data/deps/include/OGRE/RTShaderSystem/OgreShaderProgram.h +36 -30
- data/deps/include/OGRE/RTShaderSystem/OgreShaderProgramManager.h +38 -31
- data/deps/include/OGRE/RTShaderSystem/OgreShaderProgramProcessor.h +54 -43
- data/deps/include/OGRE/RTShaderSystem/OgreShaderProgramSet.h +18 -14
- data/deps/include/OGRE/RTShaderSystem/OgreShaderProgramWriter.h +10 -10
- data/deps/include/OGRE/RTShaderSystem/OgreShaderRenderState.h +28 -23
- data/deps/include/OGRE/RTShaderSystem/OgreShaderScriptTranslator.h +2 -1
- data/deps/include/OGRE/RTShaderSystem/OgreShaderSubRenderState.h +35 -32
- data/deps/include/OGRE/RenderSystems/GL/GL/wglew.h +2 -2
- data/deps/include/OGRE/RenderSystems/GL/GL/wglext.h +2 -2
- data/deps/include/OGRE/RenderSystems/GL/OgreGLRenderSystem.h +10 -1
- data/deps/include/OGRE/RenderSystems/GL/OgreGLTextureManager.h +2 -0
- data/deps/include/OGRE/Sample.h +5 -0
- data/deps/include/OGRE/SampleContext.h +13 -3
- data/deps/lib/OGRE/Plugin_BSPSceneManager.so +0 -0
- data/deps/lib/OGRE/Plugin_BSPSceneManager.so.1.8.1 +0 -0
- data/deps/lib/OGRE/Plugin_CgProgramManager.so +0 -0
- data/deps/lib/OGRE/Plugin_CgProgramManager.so.1.8.1 +0 -0
- data/deps/lib/OGRE/Plugin_OctreeSceneManager.so +0 -0
- data/deps/lib/OGRE/Plugin_OctreeSceneManager.so.1.8.1 +0 -0
- data/deps/lib/OGRE/Plugin_OctreeZone.so +0 -0
- data/deps/lib/OGRE/Plugin_OctreeZone.so.1.8.1 +0 -0
- data/deps/lib/OGRE/Plugin_PCZSceneManager.so +0 -0
- data/deps/lib/OGRE/Plugin_PCZSceneManager.so.1.8.1 +0 -0
- data/deps/lib/OGRE/Plugin_ParticleFX.so +0 -0
- data/deps/lib/OGRE/Plugin_ParticleFX.so.1.8.1 +0 -0
- data/deps/lib/OGRE/RenderSystem_GL.so +0 -0
- data/deps/lib/OGRE/RenderSystem_GL.so.1.8.1 +0 -0
- data/deps/lib/libOgreMain.so +0 -0
- data/deps/lib/libOgreMain.so.1.8.1 +0 -0
- data/deps/lib/libOgrePaging.so +0 -0
- data/deps/lib/libOgrePaging.so.1.8.1 +0 -0
- data/deps/lib/libOgreProcedural.so +0 -0
- data/deps/lib/libOgreRTShaderSystem.so +0 -0
- data/deps/lib/libOgreRTShaderSystem.so.1.8.1 +0 -0
- data/deps/lib/libOgreTerrain.so +0 -0
- data/deps/lib/libOgreTerrain.so.1.8.1 +0 -0
- data/deps/share/OGRE/media/materials/programs/DiffuseOneTexture.glsles +17 -0
- data/deps/share/OGRE/media/packs/profiler.zip +0 -0
- data/lib/ogre.so +0 -0
- data/lib/ogrebites.so +0 -0
- data/lib/procedural.so +0 -0
- data/lib/version.rb +1 -1
- data/sample/charactor/sinbad.rb +8 -4
- metadata +16 -4
@@ -134,7 +134,8 @@ protected:
|
|
134
134
|
|
135
135
|
protected:
|
136
136
|
|
137
|
-
|
137
|
+
//Render state created as a result of the current node being parsed
|
138
|
+
RenderState* mGeneratedRenderState;
|
138
139
|
|
139
140
|
};
|
140
141
|
|
@@ -60,17 +60,17 @@ class _OgreRTSSExport SubRenderState : public RTShaderSystemAlloc
|
|
60
60
|
public:
|
61
61
|
|
62
62
|
/** Class default constructor */
|
63
|
-
SubRenderState
|
63
|
+
SubRenderState();
|
64
64
|
|
65
65
|
/** Class destructor */
|
66
|
-
virtual ~SubRenderState
|
66
|
+
virtual ~SubRenderState();
|
67
67
|
|
68
68
|
|
69
69
|
/** Get the type of this sub render state.
|
70
70
|
@remarks
|
71
71
|
The type string should be unique among all registered sub render states.
|
72
72
|
*/
|
73
|
-
virtual const String&
|
73
|
+
virtual const String& getType() const = 0;
|
74
74
|
|
75
75
|
|
76
76
|
/** Get the execution order of this sub render state.
|
@@ -78,13 +78,13 @@ public:
|
|
78
78
|
The return value should be synchronized with the predefined values
|
79
79
|
of the FFPShaderStage enum.
|
80
80
|
*/
|
81
|
-
virtual int
|
81
|
+
virtual int getExecutionOrder() const = 0;
|
82
82
|
|
83
83
|
|
84
84
|
/** Copy details from a given sub render state to this one.
|
85
85
|
@param rhs the source sub state to copy from.
|
86
86
|
*/
|
87
|
-
virtual void
|
87
|
+
virtual void copyFrom(const SubRenderState& rhs) = 0;
|
88
88
|
|
89
89
|
/** Operator = declaration. Assign the given source sub state to this sub state.
|
90
90
|
@param rhs the source sub state to copy from.
|
@@ -97,7 +97,7 @@ public:
|
|
97
97
|
implement.
|
98
98
|
@param programSet container class of CPU and GPU programs that this sub state will affect on.
|
99
99
|
*/
|
100
|
-
virtual bool
|
100
|
+
virtual bool createCpuSubPrograms(ProgramSet* programSet);
|
101
101
|
|
102
102
|
/** Update GPU programs parameters before a rendering operation occurs.
|
103
103
|
This method is called in the context of SceneManager::renderSingle object via the RenderObjectListener interface and
|
@@ -108,7 +108,7 @@ public:
|
|
108
108
|
@source The auto parameter source.
|
109
109
|
@pLightList The light list used in the current rendering context.
|
110
110
|
*/
|
111
|
-
virtual void
|
111
|
+
virtual void updateGpuProgramsParams(Renderable* rend, Pass* pass, const AutoParamDataSource* source, const LightList* pLightList) { }
|
112
112
|
|
113
113
|
/** Called before adding this sub render state to the given render state.
|
114
114
|
Allows this sub render state class to configure specific parameters depending on source pass or parent render state.
|
@@ -117,17 +117,17 @@ public:
|
|
117
117
|
@param srcPass The source pass.
|
118
118
|
@param dstPass The destination pass.
|
119
119
|
*/
|
120
|
-
virtual bool
|
120
|
+
virtual bool preAddToRenderState(const RenderState* renderState, Pass* srcPass, Pass* dstPass) { return true; }
|
121
121
|
|
122
122
|
/** Return the accessor object to this sub render state.
|
123
123
|
@see SubRenderStateAccessor.
|
124
124
|
*/
|
125
|
-
SubRenderStateAccessorPtr
|
125
|
+
SubRenderStateAccessorPtr getAccessor();
|
126
126
|
|
127
127
|
/** Return the accessor object to this sub render state.
|
128
128
|
@see SubRenderStateAccessor.
|
129
129
|
*/
|
130
|
-
SubRenderStateAccessorPtr
|
130
|
+
SubRenderStateAccessorPtr getAccessor() const;
|
131
131
|
|
132
132
|
// Protected methods
|
133
133
|
protected:
|
@@ -136,24 +136,26 @@ protected:
|
|
136
136
|
@param programSet container class of CPU and GPU programs that this sub state will affect on.
|
137
137
|
@remarks Internal method called in the context of SubRenderState::createCpuSubPrograms implementation.
|
138
138
|
*/
|
139
|
-
virtual bool
|
139
|
+
virtual bool resolveParameters(ProgramSet* programSet);
|
140
140
|
|
141
141
|
/** Resolve dependencies that this sub render state requires.
|
142
142
|
@param programSet container class of CPU and GPU programs that this sub state will affect on.
|
143
143
|
@remarks Internal method called in the context of SubRenderState::createCpuSubPrograms implementation.
|
144
144
|
*/
|
145
|
-
virtual bool
|
145
|
+
virtual bool resolveDependencies(ProgramSet* programSet);
|
146
146
|
|
147
147
|
/** Add function invocation that this sub render state requires.
|
148
148
|
@param programSet container class of CPU and GPU programs that this sub state will affect on.
|
149
149
|
@remarks Internal method called in the context of SubRenderState::createCpuSubPrograms implementation.
|
150
150
|
*/
|
151
|
-
virtual bool
|
151
|
+
virtual bool addFunctionInvocations(ProgramSet* programSet);
|
152
152
|
|
153
153
|
// Attributes.
|
154
154
|
private:
|
155
|
-
|
156
|
-
SubRenderStateAccessorPtr
|
155
|
+
// The accessor of this instance.
|
156
|
+
mutable SubRenderStateAccessorPtr mThisAccessor;
|
157
|
+
// The accessor of the source instance which used as base to create this instance.
|
158
|
+
SubRenderStateAccessorPtr mOtherAccessor;
|
157
159
|
|
158
160
|
};
|
159
161
|
|
@@ -195,10 +197,10 @@ public:
|
|
195
197
|
}
|
196
198
|
|
197
199
|
/** Return a set of all instances of the template SubRenderState. */
|
198
|
-
SubRenderStateSet&
|
200
|
+
SubRenderStateSet& getSubRenderStateInstanceSet() { return mSubRenderStateInstancesSet; }
|
199
201
|
|
200
202
|
/** Return a set of all instances of the template SubRenderState. (const version). */
|
201
|
-
const SubRenderStateSet&
|
203
|
+
const SubRenderStateSet& getSubRenderStateInstanceSet() const { return mSubRenderStateInstancesSet; }
|
202
204
|
|
203
205
|
protected:
|
204
206
|
/** Construct SubRenderState accessor based on the given template SubRenderState.
|
@@ -207,8 +209,8 @@ protected:
|
|
207
209
|
|
208
210
|
|
209
211
|
protected:
|
210
|
-
const SubRenderState*
|
211
|
-
mutable SubRenderStateSet
|
212
|
+
const SubRenderState* mTemplateSubRenderState;
|
213
|
+
mutable SubRenderStateSet mSubRenderStateInstancesSet;
|
212
214
|
|
213
215
|
private:
|
214
216
|
friend class SubRenderState;
|
@@ -231,19 +233,19 @@ class _OgreRTSSExport SubRenderStateFactory : public RTShaderSystemAlloc
|
|
231
233
|
{
|
232
234
|
|
233
235
|
public:
|
234
|
-
SubRenderStateFactory
|
235
|
-
virtual ~SubRenderStateFactory
|
236
|
+
SubRenderStateFactory() {}
|
237
|
+
virtual ~SubRenderStateFactory();
|
236
238
|
|
237
239
|
/** Get the type of this sub render state factory.
|
238
240
|
@remarks
|
239
241
|
The type string should be the same as the type of the SubRenderState sub class it is going to create.
|
240
242
|
@see SubRenderState::getType.
|
241
243
|
*/
|
242
|
-
virtual const String&
|
244
|
+
virtual const String& getType() const = 0;
|
243
245
|
|
244
246
|
/** Create an instance of the SubRenderState sub class it suppose to create.
|
245
247
|
*/
|
246
|
-
virtual SubRenderState*
|
248
|
+
virtual SubRenderState* createInstance();
|
247
249
|
|
248
250
|
/** Create an instance of the SubRenderState based on script properties.
|
249
251
|
This method is called in the context of script parsing and let this factory
|
@@ -252,7 +254,7 @@ public:
|
|
252
254
|
@param prop The abstract property node.
|
253
255
|
@param pass The pass that is the parent context of this node.
|
254
256
|
*/
|
255
|
-
virtual SubRenderState*
|
257
|
+
virtual SubRenderState* createInstance(ScriptCompiler* compiler, PropertyAbstractNode* prop, Pass* pass, SGScriptTranslator* translator) { return NULL; }
|
256
258
|
|
257
259
|
/** Create an instance of the SubRenderState based on script properties.
|
258
260
|
This method is called in the context of script parsing and let this factory
|
@@ -261,22 +263,22 @@ public:
|
|
261
263
|
@param prop The abstract property node.
|
262
264
|
@param texState The pass that is the parent context of this node.
|
263
265
|
*/
|
264
|
-
virtual SubRenderState*
|
266
|
+
virtual SubRenderState* createInstance(ScriptCompiler* compiler, PropertyAbstractNode* prop, TextureUnitState* texState, SGScriptTranslator* translator) { return NULL; }
|
265
267
|
|
266
268
|
/** Retrieve the previous instance the SRS in the script translator or
|
267
269
|
* create a new instance if not found
|
268
270
|
@param translator The translator instance holding existing scripts.
|
269
271
|
*/
|
270
|
-
virtual SubRenderState*
|
272
|
+
virtual SubRenderState* createOrRetrieveInstance(SGScriptTranslator* translator);
|
271
273
|
|
272
274
|
/** Destroy the given instance.
|
273
275
|
@param subRenderState The instance to destroy.
|
274
276
|
*/
|
275
|
-
virtual void
|
277
|
+
virtual void destroyInstance(SubRenderState* subRenderState);
|
276
278
|
|
277
279
|
/** Destroy all the instances that created by this factory.
|
278
280
|
*/
|
279
|
-
virtual void
|
281
|
+
virtual void destroyAllInstances();
|
280
282
|
|
281
283
|
/** Write the given sub-render state instance using the material serializer.
|
282
284
|
This method is called in the context of material serialization. It is useful for integrating into
|
@@ -287,7 +289,7 @@ public:
|
|
287
289
|
@param srcPass The source pass.
|
288
290
|
@param dstPass The generated shader based pass.
|
289
291
|
*/
|
290
|
-
virtual void
|
292
|
+
virtual void writeInstance(MaterialSerializer* ser, SubRenderState* subRenderState, Pass* srcPass, Pass* dstPass) {}
|
291
293
|
|
292
294
|
/** Write the given sub-render state instance using the material serializer.
|
293
295
|
This method is called in the context of material serialization. It is useful for integrating into
|
@@ -298,17 +300,18 @@ public:
|
|
298
300
|
@param srcTextureUnit The source texture unit state.
|
299
301
|
@param dstTextureUnit The generated shader based texture unit state.
|
300
302
|
*/
|
301
|
-
virtual void
|
303
|
+
virtual void writeInstance(MaterialSerializer* ser, SubRenderState* subRenderState, const TextureUnitState* srcTextureUnit, const TextureUnitState* dstTextureUnit) {}
|
302
304
|
protected:
|
303
305
|
/** Create instance implementation method. Each sub class of this interface
|
304
306
|
must implement this method in which it will allocate the specific sub class of
|
305
307
|
the SubRenderState.
|
306
308
|
*/
|
307
|
-
virtual SubRenderState*
|
309
|
+
virtual SubRenderState* createInstanceImpl() = 0;
|
308
310
|
|
309
311
|
// Attributes.
|
310
312
|
protected:
|
311
|
-
|
313
|
+
// List of all sub render states instances this factory created.
|
314
|
+
SubRenderStateSet mSubRenderStateList;
|
312
315
|
};
|
313
316
|
|
314
317
|
/** @} */
|
@@ -338,7 +338,7 @@ typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC
|
|
338
338
|
#define WGL_SHARE_ACCUM_ARB 0x200E
|
339
339
|
#define WGL_SUPPORT_GDI_ARB 0x200F
|
340
340
|
#define WGL_SUPPORT_OPENGL_ARB 0x2010
|
341
|
-
#define WGL_DOUBLE_BUFFER_ARB
|
341
|
+
#define WGL_DOUBLE_BUFFER_ARB 0x2011
|
342
342
|
#define WGL_STEREO_ARB 0x2012
|
343
343
|
#define WGL_PIXEL_TYPE_ARB 0x2013
|
344
344
|
#define WGL_COLOR_BITS_ARB 0x2014
|
@@ -619,7 +619,7 @@ typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC
|
|
619
619
|
#define WGL_SHARE_ACCUM_EXT 0x200E
|
620
620
|
#define WGL_SUPPORT_GDI_EXT 0x200F
|
621
621
|
#define WGL_SUPPORT_OPENGL_EXT 0x2010
|
622
|
-
#define WGL_DOUBLE_BUFFER_EXT
|
622
|
+
#define WGL_DOUBLE_BUFFER_EXT 0x2011
|
623
623
|
#define WGL_STEREO_EXT 0x2012
|
624
624
|
#define WGL_PIXEL_TYPE_EXT 0x2013
|
625
625
|
#define WGL_COLOR_BITS_EXT 0x2014
|
@@ -90,7 +90,7 @@ extern "C" {
|
|
90
90
|
#define WGL_SHARE_ACCUM_ARB 0x200E
|
91
91
|
#define WGL_SUPPORT_GDI_ARB 0x200F
|
92
92
|
#define WGL_SUPPORT_OPENGL_ARB 0x2010
|
93
|
-
#define WGL_DOUBLE_BUFFER_ARB
|
93
|
+
#define WGL_DOUBLE_BUFFER_ARB 0x2011
|
94
94
|
#define WGL_STEREO_ARB 0x2012
|
95
95
|
#define WGL_PIXEL_TYPE_ARB 0x2013
|
96
96
|
#define WGL_COLOR_BITS_ARB 0x2014
|
@@ -194,7 +194,7 @@ extern "C" {
|
|
194
194
|
#define WGL_SHARE_ACCUM_EXT 0x200E
|
195
195
|
#define WGL_SUPPORT_GDI_EXT 0x200F
|
196
196
|
#define WGL_SUPPORT_OPENGL_EXT 0x2010
|
197
|
-
#define WGL_DOUBLE_BUFFER_EXT
|
197
|
+
#define WGL_DOUBLE_BUFFER_EXT 0x2011
|
198
198
|
#define WGL_STEREO_EXT 0x2012
|
199
199
|
#define WGL_PIXEL_TYPE_EXT 0x2013
|
200
200
|
#define WGL_COLOR_BITS_EXT 0x2014
|
@@ -515,7 +515,16 @@ namespace Ogre {
|
|
515
515
|
|
516
516
|
/// @copydoc RenderSystem::getDisplayMonitorCount
|
517
517
|
unsigned int getDisplayMonitorCount() const;
|
518
|
-
|
518
|
+
|
519
|
+
/// @copydoc RenderSystem::beginProfileEvent
|
520
|
+
virtual void beginProfileEvent( const String &eventName );
|
521
|
+
|
522
|
+
/// @copydoc RenderSystem::endProfileEvent
|
523
|
+
virtual void endProfileEvent( void );
|
524
|
+
|
525
|
+
/// @copydoc RenderSystem::markProfileEvent
|
526
|
+
virtual void markProfileEvent( const String &eventName );
|
527
|
+
};
|
519
528
|
}
|
520
529
|
#endif
|
521
530
|
|
@@ -52,6 +52,8 @@ namespace Ogre {
|
|
52
52
|
bool preciseFormatOnly = false);
|
53
53
|
|
54
54
|
protected:
|
55
|
+
friend class GLRenderSystem;
|
56
|
+
|
55
57
|
/// @copydoc ResourceManager::createImpl
|
56
58
|
Resource* createImpl(const String& name, ResourceHandle handle,
|
57
59
|
const String& group, bool isManual, ManualResourceLoader* loader,
|
data/deps/include/OGRE/Sample.h
CHANGED
@@ -155,6 +155,12 @@ namespace OgreBites
|
|
155
155
|
-----------------------------------------------------------------------------*/
|
156
156
|
virtual void runSample(Sample* s)
|
157
157
|
{
|
158
|
+
#if OGRE_PROFILING
|
159
|
+
Ogre::Profiler* prof = Ogre::Profiler::getSingletonPtr();
|
160
|
+
if (prof)
|
161
|
+
prof->setEnabled(false);
|
162
|
+
#endif
|
163
|
+
|
158
164
|
if (mCurrentSample)
|
159
165
|
{
|
160
166
|
mCurrentSample->_shutdown(); // quit current sample
|
@@ -165,7 +171,7 @@ namespace OgreBites
|
|
165
171
|
|
166
172
|
if (s)
|
167
173
|
{
|
168
|
-
|
174
|
+
// retrieve sample's required plugins and currently installed plugins
|
169
175
|
Ogre::Root::PluginInstanceList ip = mRoot->getInstalledPlugins();
|
170
176
|
Ogre::StringVector rp = s->getRequiredPlugins();
|
171
177
|
|
@@ -206,7 +212,11 @@ namespace OgreBites
|
|
206
212
|
#else
|
207
213
|
s->_setup(mWindow, mKeyboard, mMouse, mFSLayer); // start new sample
|
208
214
|
#endif
|
209
|
-
|
215
|
+
}
|
216
|
+
#if OGRE_PROFILING
|
217
|
+
if (prof)
|
218
|
+
prof->setEnabled(true);
|
219
|
+
#endif
|
210
220
|
|
211
221
|
mCurrentSample = s;
|
212
222
|
}
|
@@ -291,7 +301,7 @@ namespace OgreBites
|
|
291
301
|
/*-----------------------------------------------------------------------------
|
292
302
|
| This function encapsulates the entire lifetime of the context.
|
293
303
|
-----------------------------------------------------------------------------*/
|
294
|
-
#if OGRE_PLATFORM !=
|
304
|
+
#if OGRE_PLATFORM != OGRE_PLATFORM_NACL
|
295
305
|
virtual void go(Sample* initialSample = 0)
|
296
306
|
{
|
297
307
|
#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE_IOS || ((OGRE_PLATFORM == OGRE_PLATFORM_APPLE) && __LP64__)
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/deps/lib/libOgreMain.so
CHANGED
Binary file
|
Binary file
|
data/deps/lib/libOgrePaging.so
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/deps/lib/libOgreTerrain.so
CHANGED
Binary file
|
Binary file
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#version 100
|
2
|
+
|
3
|
+
precision mediump int;
|
4
|
+
precision mediump float;
|
5
|
+
|
6
|
+
uniform sampler2D texMap;
|
7
|
+
|
8
|
+
varying vec4 colour;
|
9
|
+
varying vec4 uv;
|
10
|
+
|
11
|
+
/*
|
12
|
+
Basic fragment program using texture and diffuse colour.
|
13
|
+
*/
|
14
|
+
void main()
|
15
|
+
{
|
16
|
+
gl_FragColor = texture2D(texMap, uv.xy) * colour;
|
17
|
+
}
|
Binary file
|
data/lib/ogre.so
CHANGED
Binary file
|
data/lib/ogrebites.so
CHANGED
Binary file
|
data/lib/procedural.so
CHANGED
Binary file
|
data/lib/version.rb
CHANGED
data/sample/charactor/sinbad.rb
CHANGED
@@ -35,7 +35,7 @@ class Sinbad < Ogre::FrameListener
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def run
|
38
|
-
init_root()
|
38
|
+
return unless init_root()
|
39
39
|
init_resources()
|
40
40
|
init_managers()
|
41
41
|
init_listeners()
|
@@ -60,9 +60,13 @@ class Sinbad < Ogre::FrameListener
|
|
60
60
|
@root = Ogre::Root.new("")
|
61
61
|
load_plugins()
|
62
62
|
|
63
|
-
|
64
|
-
|
65
|
-
|
63
|
+
if @root.show_config_dialog()
|
64
|
+
@window = @root.initialise(true, "Sinbad")
|
65
|
+
@root.add_frame_listener(self)
|
66
|
+
return true
|
67
|
+
end
|
68
|
+
|
69
|
+
return false
|
66
70
|
end
|
67
71
|
|
68
72
|
def load_plugins()
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-ogre
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: x86-linux
|
7
7
|
authors:
|
@@ -9,15 +9,14 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-19 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A ruby wrapper set of Ogre, OIS and Procedural.
|
15
15
|
email:
|
16
16
|
- abexsoft@gmail.com
|
17
17
|
executables: []
|
18
18
|
extensions: []
|
19
|
-
extra_rdoc_files:
|
20
|
-
- bindings/ogre/interface/ogre_wrap.cpp
|
19
|
+
extra_rdoc_files: []
|
21
20
|
files:
|
22
21
|
- Rakefile
|
23
22
|
- README.md
|
@@ -424,9 +423,13 @@ files:
|
|
424
423
|
- deps/lib/libOgreRTShaderSystem.so
|
425
424
|
- deps/lib/libOgrePaging.so.1.8.0
|
426
425
|
- deps/lib/libOgreProcedural.so
|
426
|
+
- deps/lib/libOgreMain.so.1.8.1
|
427
427
|
- deps/lib/libOgreMain.so
|
428
|
+
- deps/lib/libOgrePaging.so.1.8.1
|
428
429
|
- deps/lib/libOgreTerrain.so
|
430
|
+
- deps/lib/libOgreRTShaderSystem.so.1.8.1
|
429
431
|
- deps/lib/libOgreRTShaderSystem.so.1.8.0
|
432
|
+
- deps/lib/libOgreTerrain.so.1.8.1
|
430
433
|
- deps/lib/libOgreMain.so.1.8.0
|
431
434
|
- deps/lib/libOgrePaging.so
|
432
435
|
- deps/lib/libOgreTerrain.so.1.8.0
|
@@ -436,11 +439,18 @@ files:
|
|
436
439
|
- deps/lib/OGRE/Plugin_BSPSceneManager.so
|
437
440
|
- deps/lib/OGRE/Plugin_PCZSceneManager.so.1.8.0
|
438
441
|
- deps/lib/OGRE/Plugin_BSPSceneManager.so.1.8.0
|
442
|
+
- deps/lib/OGRE/Plugin_BSPSceneManager.so.1.8.1
|
443
|
+
- deps/lib/OGRE/Plugin_OctreeSceneManager.so.1.8.1
|
439
444
|
- deps/lib/OGRE/Plugin_OctreeSceneManager.so.1.8.0
|
440
445
|
- deps/lib/OGRE/Plugin_OctreeZone.so
|
441
446
|
- deps/lib/OGRE/RenderSystem_GL.so
|
447
|
+
- deps/lib/OGRE/RenderSystem_GL.so.1.8.1
|
442
448
|
- deps/lib/OGRE/Plugin_OctreeZone.so.1.8.0
|
449
|
+
- deps/lib/OGRE/Plugin_CgProgramManager.so.1.8.1
|
443
450
|
- deps/lib/OGRE/Plugin_CgProgramManager.so
|
451
|
+
- deps/lib/OGRE/Plugin_ParticleFX.so.1.8.1
|
452
|
+
- deps/lib/OGRE/Plugin_OctreeZone.so.1.8.1
|
453
|
+
- deps/lib/OGRE/Plugin_PCZSceneManager.so.1.8.1
|
444
454
|
- deps/lib/OGRE/RenderSystem_GL.so.1.8.0
|
445
455
|
- deps/lib/OGRE/Plugin_PCZSceneManager.so
|
446
456
|
- deps/lib/OGRE/Plugin_OctreeSceneManager.so
|
@@ -1062,6 +1072,7 @@ files:
|
|
1062
1072
|
- deps/share/OGRE/media/particle/Examples.particle
|
1063
1073
|
- deps/share/OGRE/media/packs/Sinbad.zip
|
1064
1074
|
- deps/share/OGRE/media/packs/ogretestmap.zip
|
1075
|
+
- deps/share/OGRE/media/packs/profiler.zip
|
1065
1076
|
- deps/share/OGRE/media/packs/fresneldemo.zip
|
1066
1077
|
- deps/share/OGRE/media/packs/chiropteraDM.pk3
|
1067
1078
|
- deps/share/OGRE/media/packs/skybox.zip
|
@@ -1446,6 +1457,7 @@ files:
|
|
1446
1457
|
- deps/share/OGRE/media/materials/programs/Ocean2HLSL_Cg.vert
|
1447
1458
|
- deps/share/OGRE/media/materials/programs/Example_BumpMappingFp.glsles
|
1448
1459
|
- deps/share/OGRE/media/materials/programs/StdQuad_Tex2a_vp.glsles
|
1460
|
+
- deps/share/OGRE/media/materials/programs/DiffuseOneTexture.glsles
|
1449
1461
|
- deps/share/OGRE/media/materials/programs/HWBasicInstancing.vert
|
1450
1462
|
- deps/share/OGRE/media/materials/programs/Ocean2GLSLES.frag
|
1451
1463
|
- deps/share/OGRE/media/materials/programs/OffsetMapping_specular.glsles
|