Jump to content

Recommended Posts

Posted

I don't know what this looks like in Lua but this does it in C
 

window = Leadwerks::Window::Create("Leadwerks", 0, 0, 1280, 720, Leadwerks::Window::Titlebar | Leadwerks::Window::Center);

I wish the documentation mentioned the option.

You could probably also use SetLayout after creating the window but you'd need to get the desktop resolution somehow.

  • Upvote 1
Posted
10 minutes ago, gamecreator said:

I don't know what this looks like in Lua but this does it in C
 


window = Leadwerks::Window::Create("Leadwerks", 0, 0, 1280, 720, Leadwerks::Window::Titlebar | Leadwerks::Window::Center);

 

Thanks!!

 

window=Window:Create(title,0,0,gfxmode.x,gfxmode.y,Window.Titlebar+Window.Center)

 

  • Upvote 1

Mars.jpg.89ab63a64eebc1f5ada0ab82b66a1f8c.jpg

 

 

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...