Changeset View
Standalone View
source/gameengine/VideoTexture/ImageRender.h
| Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | public: | ||||
| /// destructor | /// destructor | ||||
| virtual ~ImageRender (void); | virtual ~ImageRender (void); | ||||
| /// get background color | /// get background color | ||||
| int getBackground (int idx) { return (idx < 0 || idx > 3) ? 0 : int(m_background[idx]*255.f); } | int getBackground (int idx) { return (idx < 0 || idx > 3) ? 0 : int(m_background[idx]*255.f); } | ||||
| /// set background color | /// set background color | ||||
| void setBackground (int red, int green, int blue, int alpha); | void setBackground (int red, int green, int blue, int alpha); | ||||
| void setBackground (KX_Scene *scene); | |||||
hg1: This method can be private. | |||||
lordlokiAuthorUnsubmitted Not Done Inline ActionsMaybe, I can reuse the SetBackGround(KX_WorldInfo* wi); that it is not used? lordloki: Maybe, I can reuse the SetBackGround(KX_WorldInfo* wi); that it is not used? | |||||
hg1Unsubmitted Not Done Inline ActionsI think SetBackGround() and SetWorldSettings() are relict's, and should be delete with the next cleanup. hg1: I think SetBackGround() and SetWorldSettings() are relict's, and should be delete with the next… | |||||
| /// clipping distance | /// clipping distance | ||||
| float getClip (void) { return m_clip; } | float getClip (void) { return m_clip; } | ||||
| /// set whole buffer use | /// set whole buffer use | ||||
| void setClip (float clip) { m_clip = clip; } | void setClip (float clip) { m_clip = clip; } | ||||
| protected: | protected: | ||||
| /// true if ready to render | /// true if ready to render | ||||
| Show All 26 Lines | protected: | ||||
| /// render 3d scene to image | /// render 3d scene to image | ||||
| virtual void calcImage (unsigned int texId, double ts); | virtual void calcImage (unsigned int texId, double ts); | ||||
| void Render(); | void Render(); | ||||
| void SetupRenderFrame(KX_Scene *scene, KX_Camera* cam); | void SetupRenderFrame(KX_Scene *scene, KX_Camera* cam); | ||||
| void RenderFrame(KX_Scene* scene, KX_Camera* cam); | void RenderFrame(KX_Scene* scene, KX_Camera* cam); | ||||
| void SetBackGround(KX_WorldInfo* wi); | void SetBackGround(KX_WorldInfo* wi); | ||||
Not Done Inline ActionsNew style would be void SetBackGround(KX_Scene *scene); hg1: New style would be void SetBackGround(KX_Scene *scene);
But this can be done also with next… | |||||
| void SetWorldSettings(KX_WorldInfo* wi); | void SetWorldSettings(KX_WorldInfo* wi); | ||||
| }; | }; | ||||
| #endif | #endif | ||||
This method can be private.