Added Model and default shader; Organization
This commit is contained in:
1 parent
1c638bdcb9
commit
d74f808a17
23 files changed
+293
-64
No files matched your search
+2
-4
@@ -1,11 +1,9 @@
|
||||
#include "NothinFancy.h"
|
||||
#include "MainState.h"
|
||||
|
||||
using namespace nf;
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
Config conf = { 1280, 720, false, "Example Game"};
|
||||
Application app(conf);
|
||||
nf::Config conf = { 1280, 720, false, "Example Game"};
|
||||
nf::Application app(conf);
|
||||
//app.setWindowIcon(...);
|
||||
// app.setWindowCursor(...);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "MainState.h"
|
||||
|
||||
MainState::MainState(Application* app) :
|
||||
MainState::MainState(nf::Application* app) :
|
||||
Gamestate(app)
|
||||
{
|
||||
}
|
||||
@@ -13,7 +13,7 @@ void MainState::update(double deltaTime) {
|
||||
}
|
||||
|
||||
void MainState::render() {
|
||||
static Renderer& renderer = *m_app->getRenderer();
|
||||
static nf::Renderer& renderer = *m_app->getRenderer();
|
||||
}
|
||||
|
||||
void MainState::onExit() {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
class MainState : public nf::Gamestate {
|
||||
public:
|
||||
MainState(Application* app);
|
||||
MainState(nf::Application* app);
|
||||
|
||||
void onEnter() override;
|
||||
|
||||
|
||||
Reference in new issue
Block a user