Dreikblack Posted October 20 Posted October 20 World::GetEntities() does not have decals. How to get all decals? #include "Leadwerks.h" #include "ComponentSystem.h" #include "Encryption.h" using namespace Leadwerks; int main(int argc, const char* argv[]) { RegisterComponents(); auto cl = ParseCommandLine(argc, argv); //Get the displays auto displays = GetDisplays(); //Create a window auto window = CreateWindow("Leadwerks", 0, 0, 720, 400, displays[0], WINDOW_CENTER | WINDOW_TITLEBAR); //Create a framebuffer auto framebuffer = CreateFramebuffer(window); //Create a world auto world = CreateWorld(); auto decal = CreateDecal(world); auto entities = world->GetEntities(); Print(entities.size()); //Main loop while (window->Closed() == false and window->KeyDown(KEY_ESCAPE) == false) { world->Update(); world->Render(framebuffer, false); } return 0; } 1 Quote Check out Slipgate Tactics demo, which is made with Ultra Engine/Leadwerks 5: https://www.leadwerks.com/community/topic/61480-slipgate-tactics-demo/
Solution Josh Posted October 20 Solution Posted October 20 Entities have to be inserted into this listed in their creation command, and I missed this one. I am adding it now... 1 Quote Let's build cool stuff and have fun.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.