25 lines
523 B
C++
25 lines
523 B
C++
#include "pixelManager/pixelManager.h"
|
|
|
|
|
|
void PixelManager::loadSprites(vector<Task>& tasks){
|
|
ADD_SPRITE_TASK(logo)
|
|
ADD_SPRITE_TASK(menuBackground)
|
|
ADD_SPRITE_TASK(gameBackground)
|
|
ADD_SPRITE_TASK(rightHand)
|
|
}
|
|
|
|
void PixelManager::startFrame() const {
|
|
window.clearScreen();
|
|
}
|
|
|
|
void PixelManager::endFrame() const {
|
|
window.finishFrame();
|
|
}
|
|
|
|
unsigned PixelManager::getScreenHeight() const {
|
|
return window.getWindowSize().getY();
|
|
}
|
|
|
|
unsigned PixelManager::getScreenWidth() const {
|
|
return window.getWindowSize().getX();
|
|
} |