Questions tagged [window-management]

A window is conceptually the frame in which an application is rendered. It is generally created and managed through OS API calls. Some game engines will abstract these calls and integrate the functionalities into their own API. This tag should be used on questions interacting with OS's windows. It is _not_ about Microsoft's Windows operating system.

Filter by
Sorted by
Tagged with
0 votes
1 answer
97 views

Force even window dimensions

Force even resolution window I am using GLFW/glfw3 OpenGL to write 2D games. Some of my shaders have artifacts that only appear when the window size has an odd value. Eg 1201 by 1024 creates artifacts....
Blindman67's user avatar
0 votes
1 answer
1k views

glfw resizing causing image scaling

I have a quad rendered that extends from the top left of the window to with width of the window that is also 64 pixels high. When I resize the window, from its initial size, the quad and text scales ...
ChocoMan's user avatar
  • 741
0 votes
1 answer
298 views

Positioning a Window to Fill the Screen

I'm using Pygame (just started), and I'm struggling to find how I set the position of the window to fill my entire monitor screen. I can move things around within the screen / surface. I can make the ...
user133685's user avatar
2 votes
2 answers
922 views

Why do games usually don't allow arbitrary window resize?

Why do games usually only allow some specific resolutions, instead of allowing arbitrary window resizing? Are there any technical difficulties for arbitrary window resizing?
Rui Liu's user avatar
  • 143
0 votes
1 answer
902 views

Set / Get UserPointer - What Do They Do?

I see a lot of talk about glfwGetWindowUserPointer() and glfwSetWindowUserPointer() but I can't for the life of me understand what these functions actually do. From http://discourse.glfw.org/t/what-...
Ryan Walter's user avatar
0 votes
1 answer
2k views

How do I remove the window border in Godot?

I want to show my Godot engine game in a borderless window, but not fullscreen. I want to just have the game view visible on screen with no title bar or window chrome.
Kennichi Nitta's user avatar
1 vote
1 answer
1k views

How to abstract GLFW from my rendering library?

I would like to split my game engine in different libraries, so it is easier to maintain, however i have one problem: for example the window creation is handled by GLFW, so I encapsulated it into a ...
Cool_er's user avatar
  • 30
3 votes
1 answer
3k views

How can I render images to multiple windows without creating double textures in SDL2?

Simply put: What is the simplest way to render an image to two different sdl2 windows? I'm pretty new to SLD2, but I have a nice little level editor working. I then decided to move the area with edit ...
johnnie15's user avatar
156 votes
3 answers
36k views

What is the point of a borderless fullscreen window?

Quite a lot of game allow user to play in a "borderless fullscreen window" instead of a "fullscreen mode". I've been wondering. Why would one prefer a fullscreen window over the "built-in" fullscreen ...
LaVolpe's user avatar
  • 1,792
1 vote
2 answers
1k views

GUI scaling: Viewport-based scaling or individual logic

I want to use scene2d for creating a GUI for a libGDX game. In scene2d all sizes are provided in pixel units (instead of percentages). So I wonder what is the best approach to deal with different ...
Sebastian's user avatar
  • 197
3 votes
1 answer
395 views

Why are most windowed games not resizeable?

I find it incredibly rare to find a game where the window can be resized, even if permitting it is a single click away in their game engine. For what reason is this done? Thoughts that come to mind ...
Lucas's user avatar
  • 31
1 vote
1 answer
3k views

OpenGL/SDL2 How to resize the render area with the window?

After calling SDL_SetWindowSize, the area being rendered to doesn't change with the window, so if the window gets bigger, it leaves a black area on the top and ...
Byron's user avatar
  • 169
0 votes
1 answer
1k views

Setting resizable to false in LibGDX

I have a small working game prototype. I want to do something like LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration(); cfg.resizable = false; ...
rluks's user avatar
  • 111
4 votes
3 answers
3k views

In Unity, how do I set the window's size?

Say I want a "world map" (maybe think the overworld in ff games) with dimensions 800px by 600px. How would I do that? Is this tied in with the resolution? Because I know you can set the game aspect. ...
nachime's user avatar
  • 261
13 votes
2 answers
12k views

Unity UI square that fills width OR height

I'm trying to create a board with this requirements: It SHALL be square. It SHALL fit available width OR height. It SHALL be centered in the canvas. It MAY be wrapped into as many additional ...
Xavi Montero's user avatar
  • 1,063
1 vote
1 answer
198 views

opengl : Running at least 25 windows with different Draw callback

I need to run at least 25 windows concurrently with each window rendering a different game state. I am storing all the 25 game states in the array of type GameState allGameStates[25]. For each of the ...
Aspiring Game Dev's user avatar
0 votes
1 answer
1k views

OpenGL rendering to multiple windows, having 1 main loop for each window

I have written a little OpenGL framework in the past year that i would like to extend to support multiple windows in the near future. I have an idea about what I would like to do but I am not sure if ...
Chris's user avatar
  • 141
5 votes
2 answers
633 views

Monogame [Linux] cannot resize screen

While working on a Monogame project on Linux (Arch to be exact), I found that I could not change the screen height away from the default 800 px, while I could easily, perfectly change the width to ...
Pip's user avatar
  • 1,454
2 votes
2 answers
8k views

How to lock aspect ratio when resizing game window in unity?

I want a scalable game window that when resized stays at 16:9 aspect ratio. The goal is for the user to be able grab the window on the right or bottom and resize it. The game should adjust the ...
user2620255's user avatar
1 vote
3 answers
319 views

Is this way of making an XNA game window borderless safe to use for various Windows PCs?

I have found a way to simply make an XNA 4.0 game's window borderless. Here is the code from the article: ...
cubrman's user avatar
  • 1,551
0 votes
1 answer
1k views

Cant center screen between black bars

As I was trying to adapt my game to different device resolutions I ran into a problem when adjusting the game screen between the "black bars." In my case I am using the ...
naitsirc's user avatar
  • 113
4 votes
1 answer
151 views

Why might a PC game have a set number of resolutions?

There's an obvious reason games choose to use a set number of resolutions in fullscreen mode - a machine only has access to its own set of resolutions, and the intersection of the two sets determines ...
0 votes
1 answer
2k views

LWJGL Resize window and glTranslate breaking screen resolution

I'm trying to make a 2D Tile RPG game with LWJGL but I'm having a problem with the display resizing. I want the user to be able to re-size the window to whatever size they want just by expanding it (...
EternalCode0's user avatar
-1 votes
1 answer
2k views

Slick2D: Resizing the Window

I am using Slick2D, and I wanted to know which is the best way to resize, maximize, minimize the window, For example, Resizing all the images or scaling them, or Slick2D has an integrated method, Any ...
Zaphyk's user avatar
  • 43
2 votes
1 answer
861 views

Viewport Pixels trouble - Intel XDK

I'm creating a game in Intel XDK, and using their API to get the viewport width and height. These are coming back at 1122 pixels and 746 pixels, respectively. When adding my text at 150 pixels down ...
nats0128's user avatar
  • 121
2 votes
2 answers
5k views

Why does resizing my game window move and distort my rendering?

I'm starting to make a game, and the first screen I've made is a very simple loading screen with some centered text. On starting it up, the text is nicely centered: Then I resize the window, and I ...
CrateMuncher's user avatar
5 votes
1 answer
3k views

GLFW3 multiple windows

I'm trying to use GLFW3 to develop VJing application. So basic idea is use two windows: 1st window for fullscreen projection on secondary monitor (basically projector) 2nd window for (hopefully) ...
user39741's user avatar
4 votes
2 answers
2k views

What is the purpose for multiple windows in games?

A lot of game development APIs recently got support for multiple windows (such as SDL 2, and GLFW 3). But why did they add that feature? I've never seen a game in my life use multiple windows (with ...
LiquidFeline's user avatar
  • 1,381
1 vote
1 answer
6k views

OpenGL resize problems

I'm developing a minesweeper game. I'm having a problem with reshaping(resize) the window. I'm using Ubuntu Linux. Following are the code snippets and the entire code is here: This is my initializing ...
meteors's user avatar
  • 165
4 votes
1 answer
1k views

Making a game "resize-safe"

It's one thing to get the graphics aligned perfectly, it's another to do this for every single resolution and not take too much time and/or make the code unreadable due to size. Games like Battlefield ...
LiquidFeline's user avatar
  • 1,381