Search:

Type: Posts; User: hannibar

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,295

    Can not debug a crash

    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...
  2. Replies
    1
    Views
    1,581

    sscanf & whitespaces

    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 :

    ...
  3. Replies
    1
    Views
    2,795

    drawing my ui (openGL)

    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...
  4. Replies
    1
    Views
    2,787

    composing layers is openGL

    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 :...
  5. Replies
    0
    Views
    2,434

    SwapBuffers & fps

    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){...
  6. Replies
    1
    Views
    2,876

    I found out that when I switch from the standard...

    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...
  7. Replies
    1
    Views
    2,876

    problem with my font manager

    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...
  8. Replies
    1
    Views
    2,537

    openGL text in multiple windows

    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 :...
  9. Replies
    2
    Views
    1,450

    rescaling areas

    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...
  10. Replies
    8
    Views
    1,836

    Thanks, I'll try that. I already have something...

    Thanks, I'll try that.
    I already have something in mind.
  11. Replies
    8
    Views
    1,836

    Well, it should be able to be used by both...

    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...
  12. Replies
    8
    Views
    1,836

    That actually sounds like a good idea. Thanks.

    That actually sounds like a good idea. Thanks.
  13. Replies
    8
    Views
    1,836

    Thanks for the answer. what I am actually...

    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...
  14. Replies
    8
    Views
    1,836

    responsive keyboard/mouse

    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){...
  15. Replies
    1
    Views
    1,529

    Device & Rendering Context

    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,...
  16. Replies
    6
    Views
    2,167

    Bob : It has nothing to do with the windows API....

    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...
  17. Replies
    6
    Views
    2,167

    design problem

    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...
  18. Replies
    17
    Views
    10,010

    Thanks for the help everyone. It seems that my...

    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...
  19. Replies
    17
    Views
    10,010

    The documentation doesn't say anything about it.

    The documentation doesn't say anything about it.
  20. Replies
    17
    Views
    10,010

    Ok this is hard to explain... I'll try again. ...

    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...
  21. Replies
    17
    Views
    10,010

    I've seen something like : #ifdef...

    I've seen something like :



    #ifdef __cplusplus
    extern "C" {
    #endif

    #include "cppfile.h"
  22. Replies
    17
    Views
    10,010

    And how can I do it without using a c++ compiler ?

    And how can I do it without using a c++ compiler ?
  23. Replies
    17
    Views
    10,010

    using c++ in c code

    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...
  24. Thread: ignored event

    by hannibar
    Replies
    0
    Views
    1,128

    ignored event

    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...
  25. Replies
    2
    Views
    2,502

    very weird problem (pointers I think)

    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...
Results 1 to 25 of 61
Page 1 of 3 1 2 3