I'm using MSVC++ 6 to create a program using c. I get a crash when I do a specific action (in this case : click on the console window when my openGL window is open).
Normally I detect crashes by...
Type: Posts; User: hannibar
I'm using MSVC++ 6 to create a program using c. I get a crash when I do a specific action (in this case : click on the console window when my openGL window is open).
Normally I detect crashes by...
I have a couple of strings that are formatted like this :
"string1" "string2" "string3"
eg :
"testing" "hi_there" "56"
I want to break up this string into 3 strings so I call this :
...
I'm creating a user interface for one of my programs in openGL, and I want to draw it as efficiently as possible. The ui consists of a few layers :
- screens : can be thought of as backgrounds in...
I'm writing an application in openGL, and I thought of a method to optimise my drawing. Basically I will have to compose three layers.
- 1 : this layer will contain only colors with alpha = 1
- 2 :...
I'm writing a program in which more than one window can be opened. I call the following function every frame :
void swap_buffers(void){
Window *win = G->window->first;
while (win){...
I found out that when I switch from the standard font to another font, that wglUseFontBitmaps returns 0 instead of 1. And that's probably the error. However, I don't know why it returns 0.
When I...
I've written a small font manager, to be used in openGL applications, using the wgl - functions. I have a few problems though, and I can't find the error(s).
These are the problems :
- when...
I have decided to try drawing text using wglUseFontBitmaps() (in openGL). I have multple windows, and I want to be able to draw on them with the same font. The implementation I have so far is this :...
I'm making a gui, in which you can (basically) create windows, and areas. Areas are just 'areas' inside the window, in which you can draw. Each area is defined by its drawArea, which is calculated...
Thanks, I'll try that.
I already have something in mind.
Well, it should be able to be used by both (games/typing). Isn't there a solution that is good for both. btw : The reason that I want to use GetKeyState() is the following :
I need to be able to...
That actually sounds like a good idea. Thanks.
Thanks for the answer.
what I am actually making is my own GUI. It will be as optimised as possible by not drawing anything to much, but indeed when it is used to make a game or an animation, it...
I am writing a program and I want to check for messages (keypresses etc...). I need to use GetKeyState() for it. So The mainloop of my program looks something like this :
while(!done){...
I'm making an app which opens multiple windows at the same time. In all windows I want to draw using openGL. This works mostly, but I don't understand a few things though. I've searched on the msdn,...
Bob : It has nothing to do with the windows API. I'm writing my own API for it, and that's where I got into problems.
filker0 : it doesn't really matter what type event is. It is a structure which...
I'm creating a gui api. I've run into a problem though that isn't easy to solve. Right now I use the following calls to receive messages :
gui_read_events();
//sees if there's a...
Thanks for the help everyone. It seems that my problem is not trivial to solve, so I'll try to code my own memory manager library.
btw : as a side-question :
in c++, when you declare a function...
The documentation doesn't say anything about it.
Ok this is hard to explain... I'll try again.
I am writing a program in c using MSVC++6. Because I want to test this program on memory leaks, I decided to use a library called mmgr. (can be found...
I've seen something like :
#ifdef __cplusplus
extern "C" {
#endif
#include "cppfile.h"
And how can I do it without using a c++ compiler ?
I'm writing a program in c, and I try to use mmgr with it. Mmgr is a c++ file, and a h file. To use mmgr, I have to include the .h file in all my .c files. When I try to do this I get several errors...
I'm building an app, and I use my own event queue. Everything works fine, except, that sometimes no mouse_up message is being sent when releasing a mouse button. I don't have a clue what the problem...
I have a very weird problem with a piece of code I've written. I have been searching and debugging for three days now, and I still haven't found it. Unfortunately, I don't known where exactly the...