-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SUTK] Fixed the root cause of incorrectly aligned Label's text; Adde…
…d LABEL_TOGGLE_ACTIVE test - The cause of the bug was in SGE (Rendering backend) - Setting text data to text string didn't do anything if it was inactive, which resulted in incorrect values returned by IGfxDriver::getTextCoordFromGlyphIndex
- Loading branch information
Showing
14 changed files
with
236 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#pragma once | ||
|
||
#include <sutk/ITest.hpp> | ||
|
||
#include <sge-cpp/sge.hpp> | ||
|
||
#include <sutk/UIDriver.hpp> | ||
|
||
namespace SUTK | ||
{ | ||
class IGfxDriver; | ||
class Label; | ||
|
||
class LabelActiveToggleTest : public ITest | ||
{ | ||
private: | ||
UIDriver* m_uiDriver; | ||
IGfxDriver* m_gfxDriver; | ||
IInputDriver* m_inputDriver; | ||
FullWindowContainer* m_rootContainer { }; | ||
Label* m_label { }; | ||
|
||
public: | ||
LabelActiveToggleTest() : m_uiDriver(NULL), m_gfxDriver(NULL), m_inputDriver(NULL) { } | ||
|
||
TestInitializationData getInitializationData() override; | ||
|
||
void initialize(SGE::Driver& driver) override; | ||
|
||
void terminate(SGE::Driver& driver) override; | ||
|
||
void render(SGE::Driver& driver) override; | ||
|
||
void update(SGE::Driver& driver, float deltaTime) override; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.