| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- $#include "Graphics/Renderer.h"
- class Renderer
- {
- void SetNumViewports(unsigned num);
- void SetViewport(unsigned index, Viewport* viewport);
- void SetDefaultRenderPath(RenderPath* renderPath);
- void SetDefaultRenderPath(XMLFile* file);
- void SetDefaultTechnique(Technique* technique);
- void SetHDRRendering(bool enable);
- void SetSpecularLighting(bool enable);
- void SetTextureAnisotropy(int level);
- void SetTextureFilterMode(TextureFilterMode mode);
- void SetTextureQuality(int quality);
- void SetMaterialQuality(int quality);
- void SetDrawShadows(bool enable);
- void SetShadowMapSize(int size);
- void SetShadowQuality(ShadowQuality quality);
- void SetShadowSoftness(float shadowSoftness);
- void SetVSMShadowParameters(float minVariance, float lightBleedingReduction);
- void SetVSMMultiSample(int multiSample);
- void SetReuseShadowMaps(bool enable);
- void SetMaxShadowMaps(int shadowMaps);
- void SetDynamicInstancing(bool enable);
- void SetNumExtraInstancingBufferElements(int elements);
- void SetMinInstances(int instances);
- void SetMaxSortedInstances(int instances);
- void SetMaxOccluderTriangles(int triangles);
- void SetOcclusionBufferSize(int size);
- void SetOccluderSizeThreshold(float screenSize);
- void SetThreadedOcclusion(bool enable);
- void SetMobileShadowBiasMul(float mul);
- void SetMobileShadowBiasAdd(float add);
- void SetMobileNormalOffsetMul(float mul);
- void ReloadShaders();
- unsigned GetNumViewports() const;
- Viewport* GetViewport(unsigned index) const;
- RenderPath* GetDefaultRenderPath() const;
- Technique* GetDefaultTechnique() const;
- bool GetHDRRendering() const;
- bool GetSpecularLighting() const;
- bool GetDrawShadows() const;
- int GetTextureAnisotropy() const;
- TextureFilterMode GetTextureFilterMode() const;
- int GetTextureQuality() const;
- int GetMaterialQuality() const;
- int GetShadowMapSize() const;
- ShadowQuality GetShadowQuality() const;
- float GetShadowSoftness() const;
- Vector2 GetVSMShadowParameters() const;
- int GetVSMMultiSample() const;
- bool GetReuseShadowMaps() const;
- int GetMaxShadowMaps() const;
- bool GetDynamicInstancing() const;
- int GetNumExtraInstancingBufferElements() const;
- int GetMinInstances() const;
- int GetMaxSortedInstances() const;
- int GetMaxOccluderTriangles() const;
- int GetOcclusionBufferSize() const;
- float GetOccluderSizeThreshold() const;
- bool GetThreadedOcclusion() const;
- float GetMobileShadowBiasMul() const;
- float GetMobileShadowBiasAdd() const;
- float GetMobileNormalOffsetMul() const;
- unsigned GetNumViews() const;
- unsigned GetNumPrimitives() const;
- unsigned GetNumBatches() const;
- unsigned GetNumGeometries(bool allViews = false) const;
- unsigned GetNumLights(bool allViews = false) const;
- unsigned GetNumShadowMaps(bool allViews = false) const;
- unsigned GetNumOccluders(bool allViews = false) const;
- Zone* GetDefaultZone() const;
- Material* GetDefaultMaterial() const;
- Texture2D* GetDefaultLightRamp() const;
- Texture2D* GetDefaultLightSpot() const;
- void DrawDebugGeometry(bool depthTest);
- tolua_property__get_set unsigned numViewports;
- tolua_property__get_set RenderPath* defaultRenderPath;
- tolua_property__get_set Technique* defaultTechnique;
- tolua_property__get_set bool HDRRendering;
- tolua_property__get_set bool specularLighting;
- tolua_property__get_set bool drawShadows;
- tolua_property__get_set int textureAnisotropy;
- tolua_property__get_set TextureFilterMode textureFilterMode;
- tolua_property__get_set int textureQuality;
- tolua_property__get_set int materialQuality;
- tolua_property__get_set int shadowMapSize;
- tolua_property__get_set ShadowQuality shadowQuality;
- tolua_property__get_set float shadowSoftness;
- tolua_property__get_set int VSMMultiSample;
- tolua_property__get_set bool reuseShadowMaps;
- tolua_property__get_set int maxShadowMaps;
- tolua_property__get_set bool dynamicInstancing;
- tolua_property__get_set int numExtraInstancingBufferElements;
- tolua_property__get_set int minInstances;
- tolua_property__get_set int maxSortedInstances;
- tolua_property__get_set int maxOccluderTriangles;
- tolua_property__get_set int occlusionBufferSize;
- tolua_property__get_set float occluderSizeThreshold;
- tolua_property__get_set bool threadedOcclusion;
- tolua_property__get_set float mobileShadowBiasMul;
- tolua_property__get_set float mobileShadowBiasAdd;
- tolua_property__get_set float mobileNormalOffsetMul;
- tolua_readonly tolua_property__get_set unsigned numViews;
- tolua_readonly tolua_property__get_set unsigned numPrimitives;
- tolua_readonly tolua_property__get_set unsigned numBatches;
- tolua_readonly tolua_property__get_set Zone* defaultZone;
- tolua_readonly tolua_property__get_set Material* defaultMaterial;
- tolua_readonly tolua_property__get_set Texture2D* defaultLightRamp;
- tolua_readonly tolua_property__get_set Texture2D* defaultLightSpot;
- };
- Renderer* GetRenderer();
- tolua_readonly tolua_property__get_set Renderer* renderer;
- ${
- #define TOLUA_DISABLE_tolua_GraphicsLuaAPI_GetRenderer00
- static int tolua_GraphicsLuaAPI_GetRenderer00(lua_State* tolua_S)
- {
- return ToluaGetSubsystem<Renderer>(tolua_S);
- }
- #define TOLUA_DISABLE_tolua_get_renderer_ptr
- #define tolua_get_renderer_ptr tolua_GraphicsLuaAPI_GetRenderer00
- $}
|