Skip to main content

Questions tagged [winapi]

Filter by
Sorted by
Tagged with
0 votes
0 answers
205 views

I have created a .obj model in Blender. I am writing a screensaver, so, I can have only one file(.scr)?
Praveen Kumar's user avatar
1 vote
0 answers
794 views

PeekMessage, TranslateMessage, and DispatchMessage often take a long time (sometimes more ...
KTC's user avatar
  • 470
1 vote
1 answer
465 views

When I call the IDXGISwapChain::SetFullscreenState method, it does not return. The window goes fullscreen, but accepts no further input. A ...
cwhakes's user avatar
  • 31
0 votes
2 answers
1k views

I have a problem with implementing mouse-look camera movement, like in FPS games. For me common solution is: Process WM_MOUSEMOVE event in ...
b2soft's user avatar
  • 143
0 votes
0 answers
267 views

Hello I'm studying game engine programming, but I got stuck with mouse input. As for now I have only WinAPI window, which has a message pump and processing. For the mouse I used RAWINPUT, but there ...
Ilya  Pakhmutov's user avatar
1 vote
1 answer
982 views

Hey I don't know why that when I compile this code that the fear.exe process is not running I am using visual studio for my coding ide choice the project is a win32 project // application method, that ...
John Nay's user avatar
1 vote
1 answer
2k views

I'm implementing a borderless fullscreen functionality and managed to make something that almost works. Using: C++, Winapi, OpenGL 3.3. When in fullscreen borderless mode, if alt tab the game window ...
user avatar
1 vote
0 answers
111 views

I have an assignment to make a game in C++ using Winapi. As such I've decided to recreate pieces of the Pokemon games. I'm pretty well underway with the project, but there's one effect I would like to ...
qwarten's user avatar
  • 108
4 votes
1 answer
2k views

I am curious how GDI integrates with OpengGL in order to create image for computer screen. I know that GDI provide Device Context which describes window properties and as far as I know it also offer ...
Kacper Kleczewski's user avatar
0 votes
3 answers
822 views

I really need a console for the game i'm making. I am programming a first person camera right now and i want to see what is going on with the variables (to be more specific i need to know if i'm ...
Emanuele's user avatar
3 votes
1 answer
4k views

I am new to OpenGL. I am making a game similar to this, shown in image below. The problem is when I detect collision, i.e cannon ball and ship collide, I play a sound using ...
Django's user avatar
  • 45
2 votes
1 answer
2k views

I'm trying to render my game (SDL2, C++) in a Windows Form application (C#) using C++/CLI to interface with my underlying C++ code. The purpose of the form is to create an editor which can monitor/...
PhilipMR's user avatar
4 votes
1 answer
609 views

I wrote 2 weeks ago about problem with motion blur in my engine. When camera moves using keyboard, motion blur is smooth. But when I rotate camera using mouse motion blur is stepping (not sure if I ...
Harry's user avatar
  • 690
2 votes
3 answers
11k views

I am designing a keyboard class that can detect the keyboard key press only one time but I still cannot figure out the way to do it. My goal is just check and perform the action only once when the ...
user's user avatar
  • 61
-3 votes
1 answer
1k views

In an article I've read that Microsoft signed GDI/GDI+ as deprecated. I was a bit frightened, I won't be able to use OpenGL in future versions of Windows. Since you need GDI ( more likely the Device ...
LaVolpe's user avatar
  • 1,792
1 vote
2 answers
4k views

Microsoft seems to recommend using WM_INPUT for input. I want to only get relative mouse input and hide the mouse cursor all together for a short while (For gesture ...
ltjax's user avatar
  • 861
1 vote
2 answers
3k views

I'm trying to use a different Thread for the whole WinAPI-Message-Loop stuff, so the window always keeps being responsive. Of course I'm using the main thread as the "window thread", because I need a ...
cooky451's user avatar
  • 189
1 vote
1 answer
1k views

I am trying to implement the movement of the camera with the mouse. The result I want to achieve is the same that you get when you move your aim in a first person shooter. Here is the code I wrote, ...
Marco's user avatar
  • 477
9 votes
2 answers
4k views

I have a D3D11 application, and I want to add proper fullscreen suport. Now I can let DXGI switch my window to fullscreen for me, and I'm under the impression that DXGI will take care of everything ...
user avatar
3 votes
3 answers
870 views

The render loop and windows message loop run on separate threads. The way the program exits is that after PostQuitMessage is called in WM_DESTROY the message loop thread signals the render loop thread ...
user782220's user avatar
  • 1,027
0 votes
1 answer
317 views

I'm trying to make a 2-player Connect 4 game, but I'm having trouble wrapping my head around some of the concepts related to incorporating event handlers while progressing with the game. On the one ...
Qaz's user avatar
  • 103
6 votes
2 answers
18k views

I can't find any information on glCreateContextAttribsARB returning errors if a version is unsuported by the driver. So how do i check if it is? I don't want the program to hard crash because ...
dreta's user avatar
  • 3,524
4 votes
5 answers
3k views

If I want to become a game developer, is learning Win32 API a must? Does X-BOX or PS based game developers need to know Win32 API? Is it possible for a professional game developer to develop games ...
user avatar
3 votes
1 answer
2k views

I've been trying to learn some Windows programming using the Win32 API. Now, i'm used to working with the OS layer being abstracted away, mostly thanks to libraries like SFML or Allegro. Could you ...
dreta's user avatar
  • 3,524
1 vote
1 answer
2k views

What is the most common way modern games perform triple buffering ? What does the SwapBuffers exactly do in terms of OpenGL states ? Is it possible to perform double and triple buffering independently ...
Patryk Czachurski's user avatar
2 votes
1 answer
419 views

I'm pretty confused by what's happening. Now that I've finally put something moving on my screen, I notice it doesn't update unless I move the mouse, or press a key, or trigger other events. Using ...
smoth190's user avatar
  • 916
4 votes
3 answers
2k views

Okay so I am working on a game engine and this was my previous game loop: ...
Matt Jensen's user avatar
2 votes
2 answers
518 views

I want to get the pixels (or other data) for any character of the available fonts and copy/build them into a D3D texture so I could make some cache of text rendering by mapping only the character ...
Pablo Ariel's user avatar
  • 1,382
2 votes
1 answer
6k views

I am making a simple 3D game with plane in space. With c++ (win32). But the plane rotation is not realistic. The code I am using for the rotation is the following: ...
user avatar
1 vote
2 answers
3k views

I've got a Windows API Window. I've managed to make it windowed, and "fullscreen windowed". But I can't seem to make the window just full-screen- for example, even if I specify ...
DeadMG's user avatar
  • 5,536