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-2025 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::client::scene {
30class TextTestScene : public ClientScene {
31 public:
32 explicit TextTestScene(engine::Application& app) : client::ClientScene(app) {}
34
35 void Init();
36 void Update(float deltaTime);
37 void Ui(float deltaTime);
38 void Render(float deltaTime);
39
40 private:
42 float font_size = 40.f;
43 std::string text = "The quick brown fox jumps over the lazy dog";
44 int layer;
45 int src = 0;
46 int post = 0;
47 std::map<std::string, int> indices;
48 std::vector<const char*> names;
49 float delta_t = 0;
50};
51} // namespace cqsp::client::scene
Definition: scene.h:23
Just a playground for various graphics stuff
Definition: texttestscene.h:30
std::vector< const char * > names
Definition: texttestscene.h:48
void Init()
Definition: texttestscene.cpp:28
engine::LayerRenderer renderer
Definition: texttestscene.h:41
void Update(float deltaTime)
Definition: texttestscene.cpp:52
float font_size
Definition: texttestscene.h:42
void Render(float deltaTime)
Definition: texttestscene.cpp:100
int layer
Definition: texttestscene.h:44
void Ui(float deltaTime)
Definition: texttestscene.cpp:68
std::string text
Definition: texttestscene.h:43
int post
Definition: texttestscene.h:46
TextTestScene(engine::Application &app)
Definition: texttestscene.h:32
int src
Definition: texttestscene.h:45
std::map< std::string, int > indices
Definition: texttestscene.h:47
float delta_t
Definition: texttestscene.h:49
Definition: application.h:48
Renders a series of framebuffers onto screen. This is a relatively simple way of allowing organizatio...
Definition: framebuffer.h:132
Definition: loadingscene.cpp:43