Jump to content

Display->GraphicsModes() is invaild.


Go to solution Solved by Josh,

Recommended Posts

Posted

Running current beta. This doesn't seem to work.

However, this is fine.

	auto displays = UltraEngine::GetDisplays();
	for (int k = 0; k < displays.size(); ++k)
	{
		Print("Display " + String(k) + ":");
		Print(" Position: " + String(displays[k]->GetPosition()));
		Print(" Size: " + String(displays[k]->GetSize()));
		Print(" Scale: " + String(displays[k]->GetScale()));
		Print(" Graphics Modes:");
		auto gfxmodes = displays[k]->graphicsmodes;
		for (int n = 0; n < gfxmodes.size(); ++n)
		{
			Print("     " + String(n) + ": " + String(gfxmodes[n]));
		}
	}

 

  • Thanks 1

Cyclone - Ultra Game System - Component PreprocessorTex2TGA - Darkness Awaits Template (Leadwerks)

If you like my work, consider supporting me on Patreon!

Posted

Okay, since I think the available resolutions will not change (unless it was a new display) I think the method GraphicsModes() will be removed and the read-only  member graphicsmodes will be populated in GetDisplays() and then left as-is. This went through a little bit of change when I added Mac and Linux support.

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

  • Solution
Posted

UAK isn't really for creating fullscreen windows since it's for GUI applications, but I included this functionality because I wanted to test early for what comes next. Thanks for the feedback!

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

  • Josh locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...