Search:

Type: Posts; User: Iconate

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,577

    I found the solution to my error... I am...

    I found the solution to my error...

    I am supposed to use %.1f....not %d

    >.<
  2. Replies
    3
    Views
    1,577

    Pointers, Arrays, Assigning values

    I have zero idea why this is occuring, I have looked at so many examples of pointers and arrays and I just cannot figure this out.

    All I am trying to do right now is create an n by m matrix and...
  3. const Target * const animateTarget( const Target...

    const Target * const animateTarget( const Target * const tar){

    ...
    tar->setValue(something)
    ....
    }
  4. Passing, AND modifying object values (passing const... discards qualifiers error)

    So I am trying to pass an object to a function and access its methods, some of which modify its values. However, I haven't done this before, and I was following this example

    Use & to get object...
  5. Replies
    2
    Views
    2,318

    Are you saying I have to change glMatrixMode to...

    Are you saying I have to change glMatrixMode to GL_PROJECTION then before I try to put the text in the world?
  6. Replies
    2
    Views
    2,318

    Text in a 3d environment

    Hello, I am designing a game in which I want text to be displayed over certain objects to indicate to the user what to do next.

    Sadly, when I was messing around a few weeks ago I got text to...
  7. Replies
    12
    Views
    1,880

    Ahhh, got it to work :D! Ty anyways, PM me if...

    Ahhh, got it to work :D!

    Ty anyways, PM me if anyone is interested to know how, but that tutorial basically tells all
  8. Replies
    12
    Views
    1,880

    Well, I ran this example OpenGL @ Lighthouse...

    Well, I ran this example

    OpenGL @ Lighthouse 3D - GLUT Tutorial

    and its exactly how I want character to move, but now Im having trouble incorporating it
  9. Replies
    12
    Views
    1,880

    mhmm, I dont particularly want to invest my time...

    mhmm, I dont particularly want to invest my time into that, if thats the only option I will, but there are GLUT keystate commands that could just be intertwined to perform the way I want.
  10. Replies
    12
    Views
    1,880

    I found online, GetAsyncKeyState, and used that,...

    I found online, GetAsyncKeyState, and used that, but it still gives me the same problem.
  11. Replies
    12
    Views
    1,880

    Fluent key inputs.

    I am working on a simple FPS for school in OpenGL, cpp, and I am having an issue with key inputs being delayed after the first one.

    To simplify; When I hold W to move forward, the character takes...
  12. Replies
    4
    Views
    3,578

    Ah perfect that worked thank you. Also I DID...

    Ah perfect that worked thank you.

    Also I DID manage to get it working prior, but with another example I found online...however, for the X and Y coordinate for renderBitmapCharacter, I was using...
  13. Replies
    4
    Views
    3,578

    After looking into it, I think it has to do with...

    After looking into it, I think it has to do with the parameters im passing to the renderBitmapString function, but im not sure how the coordinates are created
  14. Replies
    4
    Views
    3,578

    Cannot get text to be displayed

    I have just recently started working with OpenGL in school and am having trouble getting text to be displayed on the screen. I am not familiar with all the functions yet, this was just a blank...
  15. Replies
    15
    Views
    2,657

    const char *dayn[] = { "Sun", "Mon", "Tue",...

    const char *dayn[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}, **days_names = dayn - 1;

    Wow I LOVE that bit of code at the end there, thats really helpful, do you mind explaining why its...
  16. Replies
    15
    Views
    2,657

    Hey! My job is open 11pm - 12am every day! ...

    Hey! My job is open 11pm - 12am every day!


    But thanks guys, that makes sense. Follow up question though, why am I using a pointer for the array? Is it because if I called the array say...
  17. Replies
    15
    Views
    2,657

    char *colour_names[] = {"RED", "ORANGE",...

    char *colour_names[] = {"RED", "ORANGE", "YELLOW", "GREEN", "BLUE", "INDIGO", "VIOLET"};
    .
    .
    .
    printf("sky = &#37;s\n", colour_names[sky]);


    *EDIT* just working on this now.....and What I...
  18. Replies
    15
    Views
    2,657

    Understanding/Implementing Enumeration

    Hello, I am currently teaching myself C, and am at a point where I am learning about enumeration. Id really like some help understanding its capabilities. Here in this example I was given.


    ...
  19. Replies
    2
    Views
    1,625

    Ah dang, thanks very much, lastly is the display...

    Ah dang, thanks very much, lastly is the display of the address of the word

    EDIT :
    Ok so Im quite sure that


    NODE* MakeNode(char *name)
    {
    NODE* t;
    t=(NODE*)malloc(sizeof(NODE));
  20. Replies
    2
    Views
    1,625

    Returning addresses, buffer not clearing

    My two issues with my program is that; first, When the user is entering their words, the duplicate error message only apears if it is the first word they enter(ie...)



    enter a word : bill...
  21. Replies
    28
    Views
    4,537

    Yes! It works! thank you so much man! I'll have...

    Yes! It works! thank you so much man! I'll have to just think through that correction though so I understand what it was doing :)
  22. Replies
    28
    Views
    4,537

    So i used char *temp ......

    So i used


    char *temp
    ...
    temp=(char*)malloc(21*sizeof(char));
    if (p==NULL)
    {
    printf("Memory error");
    exit(0);
  23. Replies
    28
    Views
    4,537

    Hey guys thanks very much for your input. My prof...

    Hey guys thanks very much for your input. My prof does brackets like



    if (x) {
    ...
    }


    but I see a lot of code on these forums look like the following so I adapt them that way (plus its...
  24. Replies
    28
    Views
    4,537

    awesome, im taking a look at these now, thanks so...

    awesome, im taking a look at these now, thanks so much for your help. Also, for some reason in my program the value "2" for N doesn't work, but every other number does...I get a memory allocation...
  25. Replies
    28
    Views
    4,537

    for (a=N; a>0; a--) { for (b=0; b

    for (a=N; a>0; a--)
    {
    for (b=0; b<a; b++)
    {
    if (strcmp(p[j],p[j+1])>0)
    {
    strcpy(temp,p[j]);
    strcpy(p[j],p[j+1]);
    strcpy(p[j+1],temp);
    }
Results 1 to 25 of 36
Page 1 of 2 1 2