| Welcome to Epee Engine. We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| Sprockets; Documentation on the Sprockets Class | |
|---|---|
| Topic Started: Mar 8 2007, 11:18 AM (223 Views) | |
| Alan | Mar 8 2007, 11:18 AM Post #1 |
|
Administrator
![]() ![]() ![]() ![]() ![]()
|
Sprockets: Is the base class for all readable objects. Inherits from: nothing Function List: public: Sprockets(std::string _NameMain,int _TypeMain); Sprockets(std::string _NameMain,int _TypeMain, int _x, int _y,int _z); virtual ~Sprockets(); virtual void CallBackFromSuper(); virtual void LoadTexture(); virtual void SDL_GL_SurfaceToTexture(SDL_Surface * surface); virtual void CreateTexture(SDL_Surface * _baseSurface,SDL_Surface * _image); int NearestPowerOfTwo(int i); void SetLocation(int _x,int _y); int GetLocationX(); int GetLocationY(); std::string GetName(); int GetLocationZ (); EpeeEngineError GetLastError(); void SetLastError(EpeeEngineError _error); void ClearError(); virtual void SetHeightWidth(unsigned int _Height,unsigned int _Width); unsigned int GetHeight(); unsigned int GetWidth (); bool SetDraw(bool _Draw); bool GetDraw(); int GetType(); bool SetScalingFactor(double _ScalingX,double _ScalingY); bool SetScalingFactorY(double _ScalingY); bool SetScalingFactorX(double _ScalingX); double GetScalingFactorX(); double GetScalingFactorY(); bool SetRotation(double _Degrees ); double GetRotation(); bool SetAntiAliased(bool _AntiAliased ); bool GetAntiAliased(); int GetCurrentVectorPostion(); virtual Sprockets * WasClicked(int _mouselocationX, int _mouselocationY); void DisableClick(); void EnableClick(); bool GetIsClickEnabled(); void DisableAndTurnOffDraw(); void EnableAndTurnOnDraw(); void SetDontMoveOnClick(bool _flag); bool GetDontMoveOnClick(); bool WasLastSprocketClicked(); void ShowOutLine(); void HideOutLine(); bool GetOutLine(); protected: bool GetBlit(); virtual SDL_Surface * SetSurface(); virtual SDL_Surface * GetSprocketSurface(); SDL_Rect * GetRect(); bool SetCurrentArrayPostion(int _newPostion); void SetType(int _type); void SetBlit(bool _blit); virtual void SetModifySurFace(SDL_Surface * _ModifySurface); SDL_Surface * GetModifySurFace(); |
![]() |
|
| Alan | Mar 8 2007, 11:19 AM Post #2 |
|
Administrator
![]() ![]() ![]() ![]() ![]()
|
virtual void CallBackFromSuper(); Description: This is an initialization function that needs to be called after the the sprockets or derived class is created. Creation functions in the epee engine do this for you. |
![]() |
|
| « Previous Topic · Documentation · Next Topic » |





![]](http://209.85.48.16/static/1/pip_r.png)


