24 #ifndef HX3D_GRAPHICS_VIEWPORTS_FITVIEWPORT 25 #define HX3D_GRAPHICS_VIEWPORTS_FITVIEWPORT 27 #include "hx3d/graphics/viewports/viewport.hpp" 46 FitViewport(
const float worldWidth,
const float worldHeight);
virtual void internalUpdate(Camera &camera) override
Update the viewport, centering the camera (internal).
FitViewport(const float worldWidth, const float worldHeight)
Create a fit viewport using a world width and height.
Fit the screen resolution.