git pushing to find where it changed and why tf TBB is being called
This commit is contained in:
parent
d36dc68f8a
commit
64332cc93e
8 changed files with 118 additions and 36 deletions
|
|
@ -7,6 +7,7 @@ add_executable(forespend ${FORESPEND_SOURCES})
|
|||
set_target_properties(forespend PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/built/forespend/${PLATFORM_DIR}/bin"
|
||||
)
|
||||
|
||||
target_link_directories(
|
||||
forespend PUBLIC
|
||||
"${CMAKE_SOURCE_DIR}/link")
|
||||
|
|
|
|||
|
|
@ -15,12 +15,9 @@ void client::boot() {
|
|||
target=LoadRenderTexture(380,240);
|
||||
}
|
||||
void client::draw() {
|
||||
BeginTextureMode(target);
|
||||
this->currentscene->draw();
|
||||
EndTextureMode();
|
||||
BeginDrawing();
|
||||
ClearBackground(WHITE);
|
||||
DrawTexturePro(target.texture, {0, 0, 380,240}, {0, 0, (float)GetScreenWidth(), (float)GetScreenHeight()}, {0, 0}, 0, WHITE);
|
||||
this->currentscene->draw();
|
||||
EndDrawing();
|
||||
}
|
||||
void client::exit() {
|
||||
|
|
|
|||
6
games/forespend/src/client/scenes/configmenu.h
Normal file
6
games/forespend/src/client/scenes/configmenu.h
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#pragma once
|
||||
#include <vector>
|
||||
#include <enginend/scenes/node2drelative.h>
|
||||
|
||||
|
||||
std::vector<enginend::nodes::group> config{};
|
||||
|
|
@ -1,20 +1,29 @@
|
|||
#pragma once
|
||||
#include <incmgr.h>
|
||||
#include <enginend/scenes/node2drelative.h>
|
||||
#include <enginend/scenes/node2d.h>
|
||||
|
||||
class mainmenu :public virtual enginend::scene{
|
||||
private:
|
||||
Texture2D bg= LoadTexture(AT("res/images/tilesheet.png"));
|
||||
public:
|
||||
void boot() override {
|
||||
|
||||
this->nodes=std::list<enginend::nodes::node*>{
|
||||
new enginend::nodes::relative::animated(AT("res/images/sky.gif"),0,0,10,10,5)
|
||||
new enginend::nodes::relative::animated(AT("res/images/sky.gif"),0,0,1,1,2),
|
||||
};
|
||||
enginend::scene::boot();
|
||||
}
|
||||
void tick() override {
|
||||
enginend::scene::tick();
|
||||
for (enginend::nodes::node* n : this->nodes) {
|
||||
n->tick();
|
||||
|
||||
}
|
||||
}
|
||||
void draw() override {
|
||||
enginend::scene::draw();
|
||||
for (enginend::nodes::node* n : this->nodes) {
|
||||
n->draw();
|
||||
}
|
||||
}
|
||||
void exit() override {
|
||||
enginend::scene::exit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue