-
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.
- Loading branch information
Showing
3 changed files
with
53 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#pragma once | ||
#include "Pre.h" | ||
|
||
#include "glm/mat4x4.hpp" | ||
|
||
#include "Core/Main.h" | ||
#include "Gfx/Gfx.h" | ||
|
||
#include "Camera.h" | ||
#include "Controls.h" | ||
#include "Renderer.h" | ||
#include "Resources.h" | ||
#include "shaders.h" | ||
|
||
using namespace Oryol; | ||
|
||
|
||
class BattleApp : public App { | ||
|
||
public: | ||
|
||
AppState::Code OnRunning(); | ||
|
||
AppState::Code OnInit(); | ||
|
||
AppState::Code OnCleanup(); | ||
|
||
private: | ||
|
||
void DrawTilemap(Renderer::Tilemap& tilemap); | ||
|
||
void DrawRenderable(Renderer::Renderable& rend); | ||
|
||
Id MainRenderPass; | ||
DrawState MainDrawState; // Renders to texture at native GBA resolution | ||
MainShader::gl vsGLParams; | ||
MainShader::gba vsGBAParams; | ||
glm::mat4 ViewProj; | ||
|
||
DrawState ScreenQuadDrawState; // Displays render texture to screen, upscaled | ||
|
||
Id UnitMesh; | ||
|
||
Camera Cam; | ||
Renderer Renderer; | ||
Controls Controls; | ||
Resources Res; | ||
}; | ||
|
||
OryolMain(BattleApp); |
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