- INTEGER_CONSTANT(Version, 1);
- STRING_CONSTANT(Name, "renderstate");
-
- virtual Shader* capture(const char* name) = 0;
- virtual void release(const char* name) = 0;
- /*! Render all Shader objects. */
- virtual void render(RenderStateFlags globalstate, const Matrix4& modelview, const Matrix4& projection, const Vector3& viewer = Vector3(0, 0, 0)) = 0;
-
- virtual void realise() = 0;
- virtual void unrealise() = 0;
-
- virtual bool lightingSupported() const = 0;
- virtual bool useShaderLanguage() const = 0;
-
- virtual const LightList& attach(LightCullable& cullable) = 0;
- virtual void detach(LightCullable& cullable) = 0;
- virtual void changed(LightCullable& cullable) = 0;
- virtual void attach(RendererLight& light) = 0;
- virtual void detach(RendererLight& light) = 0;
- virtual void changed(RendererLight& light) = 0;
-
- virtual void attachRenderable(const Renderable& renderable) = 0;
- virtual void detachRenderable(const Renderable& renderable) = 0;
- virtual void forEachRenderable(const RenderableCallback& callback) const = 0;
+INTEGER_CONSTANT( Version, 1 );
+STRING_CONSTANT( Name, "renderstate" );
+
+virtual Shader* capture( const char* name ) = 0;
+virtual void release( const char* name ) = 0;
+/*! Render all Shader objects. */
+virtual void render( RenderStateFlags globalstate, const Matrix4& modelview, const Matrix4& projection, const Vector3& viewer = Vector3( 0, 0, 0 ) ) = 0;
+
+virtual void realise() = 0;
+virtual void unrealise() = 0;
+
+virtual bool lightingSupported() const = 0;
+virtual bool useShaderLanguage() const = 0;
+
+virtual const LightList& attach( LightCullable& cullable ) = 0;
+virtual void detach( LightCullable& cullable ) = 0;
+virtual void changed( LightCullable& cullable ) = 0;
+virtual void attach( RendererLight& light ) = 0;
+virtual void detach( RendererLight& light ) = 0;
+virtual void changed( RendererLight& light ) = 0;
+
+virtual void attachRenderable( const Renderable& renderable ) = 0;
+virtual void detachRenderable( const Renderable& renderable ) = 0;
+virtual void forEachRenderable( const RenderableCallback& callback ) const = 0;