git pushing to find where it changed and why tf TBB is being called

This commit is contained in:
kin fuyuki 2025-12-25 17:04:13 -03:00
commit 64332cc93e
No known key found for this signature in database
GPG key ID: 0E4E8E519FB71401
8 changed files with 118 additions and 36 deletions

View file

@ -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")

View file

@ -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() {

View file

@ -0,0 +1,6 @@
#pragma once
#include <vector>
#include <enginend/scenes/node2drelative.h>
std::vector<enginend::nodes::group> config{};

View file

@ -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();