mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
22 lines
No EOL
391 B
C++
22 lines
No EOL
391 B
C++
#ifndef GRAPHICS_VIEWPORT_H_
|
|
#define GRAPHICS_VIEWPORT_H_
|
|
|
|
#include <glm/glm.hpp>
|
|
|
|
#include "../typedefs.h"
|
|
|
|
class Viewport {
|
|
uint width;
|
|
uint height;
|
|
public:
|
|
Viewport(uint width, uint height);
|
|
|
|
virtual uint getWidth() const;
|
|
virtual uint getHeight() const;
|
|
|
|
glm::ivec2 size() const {
|
|
return glm::ivec2(width, height);
|
|
}
|
|
};
|
|
|
|
#endif // GRAPHICS_VIEWPORT_H_
|