Jump to content

Recommended Posts

Posted

At EVENT_STARTRENDERER data = 0, event text is empty (or have " ", not sure), white window.

SelectDevice cpp included to project.

It happens not on my PC, so can't debug.

Same with simple code. What can be done to fix it?

#include "Leadwerks.h"

using namespace Leadwerks;

int main(int argc, const char* argv[]) {
	//Get the displays
	auto displays = GetDisplays();

	//Create a window
	auto window = CreateWindow("Leadwerks", 0, 0, 1280, 720, displays[0], WINDOW_CENTER | WINDOW_TITLEBAR);

	//Create a world
	auto world = CreateWorld();

	//Create a framebuffer
	auto framebuffer = CreateFramebuffer(window);

	//Create a camera
	auto camera = CreateCamera(world);
	camera->SetClearColor(0.125);
	camera->SetPosition(0, 0, -4);

	//Create a light
	auto light = CreateBoxLight(world);
	light->SetRotation(45, 35, 0);
	light->SetRange(-10, 10);
	light->SetColor(2);

	//Create a model
	auto model = CreateBox(world);
	model->SetColor(0, 0, 1);

	//Main loop
	while (window->Closed() == false and window->KeyDown(KEY_ESCAPE) == false) {
		while (PeekEvent()) {
			const Event ev = WaitEvent();
			if (ev.id == EVENT_STARTRENDERER) {
				if (ev.data != 0) {
					Notify(ev.text.empty() ? "Empty" : ev.text);
				}
				break;
			}
		}
		model->Turn(0, 1, 0);
		world->Update();
		world->Render(framebuffer);
	}
	return 0;
}

 

Check out Slipgate Tactics - turn based tactics Quake fan game, which is made with Ultra Engine/Leadwerks 5:

https://www.leadwerks.com/community/topic/61480-slipgate-tactics-demo/

Posted

Well, the good news is they didn't put out an engine-breaking driver. I have 25.11.1 installed now and the editor runs fine.

I am testing on a 6600, so it's not exactly the same card, but it is likely to act the same.

The only thing I can do now is get a 9xxx series card and make sure it is working, although I would be surprised if it had a problem.

Do you know if this user has win 10 or 11?

Let's build cool stuff and have fun. :)

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...