Code-style consistency improvement:
Apply clang-format-all.sh using the _clang-format file through all the cpp/.h files. make sure not to apply it to certain serialization structures, since some parser expects the * as part of the name, instead of type. This commit contains no other changes aside from adding and applying clang-format-all.sh
This commit is contained in:
@@ -11,41 +11,37 @@
|
||||
#include "Gwen/BaseRender.h"
|
||||
#include <SFML/Graphics.hpp>
|
||||
|
||||
namespace Gwen
|
||||
namespace Gwen
|
||||
{
|
||||
namespace Renderer
|
||||
{
|
||||
namespace Renderer
|
||||
{
|
||||
class SFML : public Gwen::Renderer::Base
|
||||
{
|
||||
public:
|
||||
SFML(sf::RenderTarget& target);
|
||||
~SFML();
|
||||
|
||||
class SFML : public Gwen::Renderer::Base
|
||||
{
|
||||
public:
|
||||
virtual void SetDrawColor(Gwen::Color color);
|
||||
|
||||
SFML( sf::RenderTarget& target );
|
||||
~SFML();
|
||||
virtual void DrawLine(int x, int y, int a, int b);
|
||||
virtual void DrawFilledRect(Gwen::Rect rect);
|
||||
|
||||
virtual void SetDrawColor(Gwen::Color color);
|
||||
virtual void LoadFont(Gwen::Font* pFont);
|
||||
virtual void FreeFont(Gwen::Font* pFont);
|
||||
virtual void RenderText(Gwen::Font* pFont, Gwen::Point pos, const Gwen::UnicodeString& text);
|
||||
virtual Gwen::Point MeasureText(Gwen::Font* pFont, const Gwen::UnicodeString& text);
|
||||
|
||||
virtual void DrawLine( int x, int y, int a, int b );
|
||||
virtual void DrawFilledRect( Gwen::Rect rect );
|
||||
void StartClip();
|
||||
void EndClip();
|
||||
|
||||
virtual void LoadFont( Gwen::Font* pFont );
|
||||
virtual void FreeFont( Gwen::Font* pFont );
|
||||
virtual void RenderText( Gwen::Font* pFont, Gwen::Point pos, const Gwen::UnicodeString& text );
|
||||
virtual Gwen::Point MeasureText( Gwen::Font* pFont, const Gwen::UnicodeString& text );
|
||||
|
||||
void StartClip();
|
||||
void EndClip();
|
||||
|
||||
void DrawTexturedRect( Gwen::Texture* pTexture, Gwen::Rect pTargetRect, float u1=0.0f, float v1=0.0f, float u2=1.0f, float v2=1.0f );
|
||||
void LoadTexture( Gwen::Texture* pTexture );
|
||||
void FreeTexture( Gwen::Texture* pTexture );
|
||||
void DrawTexturedRect(Gwen::Texture* pTexture, Gwen::Rect pTargetRect, float u1 = 0.0f, float v1 = 0.0f, float u2 = 1.0f, float v2 = 1.0f);
|
||||
void LoadTexture(Gwen::Texture* pTexture);
|
||||
void FreeTexture(Gwen::Texture* pTexture);
|
||||
|
||||
protected:
|
||||
|
||||
sf::RenderTarget& m_Target;
|
||||
sf::Color m_Color;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
protected:
|
||||
sf::RenderTarget& m_Target;
|
||||
sf::Color m_Color;
|
||||
};
|
||||
} // namespace Renderer
|
||||
} // namespace Gwen
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user