Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
texttestscene.h
Go to the documentation of this file.
1/* Conquer Space
2 * Copyright (C) 2021-2023 Conquer Space
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17#pragma once
18
19#include <map>
20#include <string>
21#include <vector>
22
23#include "client/scenes/scene.h"
25namespace cqsp {
26namespace scene {
32 public:
33 explicit TextTestScene(cqsp::engine::Application& app) : cqsp::client::Scene(app) {}
35
36 void Init();
37 void Update(float deltaTime);
38 void Ui(float deltaTime);
39 void Render(float deltaTime);
40
41 private:
43 float font_size = 40.f;
44 std::string text = "The quick brown fox jumps over the lazy dog";
45 int layer;
46 int src = 0;
47 int post = 0;
48 std::map<std::string, int> indices;
49 std::vector<const char*> names;
50 float delta_t = 0;
51};
52} // namespace scene
53} // namespace cqsp
Definition: scene.h:23
Definition: application.h:47
Renders a series of framebuffers onto screen. This is a relatively simple way of allowing organizatio...
Definition: framebuffer.h:133
Scene()
Definition: scene.h:30
Just a playground for various graphics stuff
Definition: texttestscene.h:31
int src
Definition: texttestscene.h:46
TextTestScene(cqsp::engine::Application &app)
Definition: texttestscene.h:33
std::string text
Definition: texttestscene.h:44
std::vector< const char * > names
Definition: texttestscene.h:49
void Update(float deltaTime)
Definition: texttestscene.cpp:50
int post
Definition: texttestscene.h:47
cqsp::engine::LayerRenderer renderer
Definition: texttestscene.h:42
void Render(float deltaTime)
Definition: texttestscene.cpp:98
std::map< std::string, int > indices
Definition: texttestscene.h:48
int layer
Definition: texttestscene.h:45
float delta_t
Definition: texttestscene.h:50
void Init()
Definition: texttestscene.cpp:26
void Ui(float deltaTime)
Definition: texttestscene.cpp:66
float font_size
Definition: texttestscene.h:43
When adding assets, it is extremely crucial that you read cqsp::asset::AssetLoader::LoadResources to ...
Definition: clientctx.h:21