Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
r4nn0 committed Jun 24, 2024
1 parent 2fedfb7 commit 06b8625
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Mingw/Graphics/Sprite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void Sprite::setScale(glm::vec2 _scale) {m_Size=_scale*m_BaseSize;}
void Sprite::setColor(glm::vec4 _color) {m_Color=_color;}
bool Sprite::operator==(const Sprite& spr2) const{
return m_Pos==spr2.m_Pos && m_Size==spr2.m_Size
&& m_UV==spr2.m_UV && m_Color==spr2.m_Color && m_texSlot==spr2.m_texSlot;
&& m_UV==spr2.m_UV && m_texSlot==spr2.m_texSlot;
}

/**
Expand Down
7 changes: 5 additions & 2 deletions Mingw/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,19 @@ int main (){
gameEngine.setBackgroundColor(BACKGROUND_COLOR);
gameEngine.StepEvent();
testObject.Update();



gameEngine.BeginDraw();
/*NOTE: You can only render after Engin::BeginDraw call and before Engine::EndDraw call*/

font.FaceSize(16);
font.Render(fpsString.c_str(),-1,FTPoint(0,gameEngine.getViewHeight()-font.FaceSize(),0));
font.FaceSize(100);

font.Render(ar_fix(L"مرحبا").c_str(), -1, FTPoint(gameEngine.getViewWidth()/2-font.FaceSize()/2,gameEngine.getViewHeight()/2-font.FaceSize()/2,0));
testObject.Render();


testObject.Render();

renderer.Render();

Expand Down

0 comments on commit 06b8625

Please sign in to comment.