Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: pbivens

Page 1 of 5 1 2 3 4

Search: Search took 0.00 seconds.

  1. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    well I am working on my simon game, I am making...

    well I am working on my simon game, I am making the AI for my game. this problem is quite difficult, any input on how I should proceed?
  2. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    well I finally solved my square problems. thanks...

    well I finally solved my square problems. thanks for all the help
  3. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    well I got my code to blink off and on one of my...

    well I got my code to blink off and on one of my rectangles, I want it to blink on and off only once.
  4. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    thanks for the help, I will work on my code more....

    thanks for the help, I will work on my code more. is there any tutorials I can look at that will help?
  5. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    can I please get some more help, I have almost...

    can I please get some more help, I have almost solved my problem.
  6. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    I have almost solved my problem. I got a...

    I have almost solved my problem. I got a rectangle to turn off by itself. I just want it turn on by itself as well.


    void delay(int v)
    {
    board[0][0] = 1;
    glutPostRedisplay();...
  7. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    is there I can use as a wait function?

    is there I can use as a wait function?
  8. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    int num = 2; if (num == 1) { board[0][0]...

    int num = 2;

    if (num == 1)
    {
    board[0][0] = 1;
    }
    if (num == 2)
    {
    board[0][1] = 1;
    glColor3f(0.5f, 0.0f, 0.0f);
  9. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    well I am now working on the computer player in...

    well I am now working on the computer player in my game. right now one of my squares is dimmed, I want it to turn on and off and on again.


    void draw_button()
    {
    if (board[0][0] == 1)
    {...
  10. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    now I have to work on the AI for my game. I have...

    now I have to work on the AI for my game. I have to develop the computer player for my simon game. can I get a hint on how to proceed further.
  11. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    I finally solved my problem, thanks for all the...

    I finally solved my problem, thanks for all the help.
  12. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    well I tried the glutPostRedisplay but it made...

    well I tried the glutPostRedisplay but it made the buttons to not blink on and off. they just stayed static.
  13. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    cool I am glad that I understand display callback...

    cool I am glad that I understand display callback functions. here is my mouse callback


    void onMouseButton(int button, int state, int x, int y)
    {
    if (button == GLUT_LEFT_BUTTON && state ==...
  14. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    well here is my display callback function ...

    well here is my display callback function


    void RenderScene(void)
    {
    glClear(GL_COLOR_BUFFER_BIT);
    Draw_Buttons();
    glFinish();
    draw_button();
    }
  15. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    simon game

    I am working on a simon game. I am using c++ and opengl.I am able to draw four buttons. When press a button with the mouse it turns off and on. however it also turns on and off the other buttons. I...
  16. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    I have already posted my code above.

    I have already posted my code above.
  17. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    I am building a simon game. However when I press...

    I am building a simon game. However when I press a square and another square it turns both squares off and on. I want to turn on and off one square at a time.
  18. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    I am going to work on this problem more.

    I am going to work on this problem more.
  19. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    I have made more progress. void...

    I have made more progress.


    void delay_one(int v)
    {
    glColor3f(1.0f, 1.0f, 0.0f);
    glRectf(-90.0f, 90.0f, -10.0f, 10.0f);
    glutTimerFunc(1000, delay_one, v);
    glFlush();
    }
  20. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    well I finally solved this problem. here is the...

    well I finally solved this problem. here is the code I am using.


    void delay(int v)
    {
    glColor3f(1.0f, 1.0f, 0.0f);
    glRectf(-90.0f, 90.0f, -10.0f, 10.0f);
    glutTimerFunc(1000, delay, v);...
  21. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    void delay(int v) { glColor3f(1.0f, 1.0f,...

    void delay(int v)
    {
    glColor3f(1.0f, 1.0f, 0.0f);
    glRectf(-90.0f, 90.0f, -10.0f, 10.0f);
    glutPostRedisplay();
    glutTimerFunc(1000, delay, v);
    glFlush();
    }
    void draw_button()
    {
  22. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    void delay(int v) { glColor3f(1.0f, 1.0f,...

    void delay(int v)
    {
    glColor3f(1.0f, 1.0f, 0.0f);
    glRectf(-90.0f, 90.0f, -10.0f, 10.0f);
    glutPostRedisplay();
    glutTimerFunc(1000, delay, v);
    }
    void draw_button()
    {
    if (board[0][0] == 1)
  23. Thread: delay function

    by pbivens
    Replies
    34
    Views
    1,750

    delay function

    void delay(float secs)
    {
    float end = clock() / CLOCKS_PER_SEC + secs;
    while ((clock() / CLOCKS_PER_SEC) < end);
    }
    void draw_button()
    {
    if (board[0][0] == 1)
    {
    glColor3f(0.5f, 0.5f,...
  24. Replies
    0
    Views
    184

    moving rectangle

    well I am able to rotate my rectangle but I want to move it up or down after I rotate it and have it follow the nose of the rectangles. I want to move my rectangles like asteroids.


    void...
  25. Replies
    37
    Views
    9,277

    well I am stopping working on my game until I...

    well I am stopping working on my game until I learn c++ better, thanks for all the help.
Results 1 to 25 of 101
Page 1 of 5 1 2 3 4