#define's Profile User Rating: *****

Reputation: 1509 Grandmaster
Group:
Expert
Active Posts:
5,255 (2.33 per day)
Joined:
19-February 09
Profile Views:
45,576
Last Active:
User is offline Yesterday, 03:46 PM
Currently:
Offline

Previous Fields

Country:
Who Cares
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
Who Cares
Favorite Gaming Platform:
PC
Your Car:
LandRover
Dream Kudos:
0
Expert In:
C/C++

Latest Visitors

Icon   #define has not set their status

Posts I've Made

  1. In Topic: How do I texture a glutSolidSphere (can't be gluSphere)?

    Posted 25 Apr 2015

    Hi, my understanding is that the GLUT routines including the solid sphere don't have texture coordinates, the teapot does. You can apply textures to the sphere etc but it won't work correctly eg won't rotate.

    Here are a couple of articles that may be of help.

    Texture map in solid sphere using GLUT (OpenGL)

    Simple method for texture mapping on sphere using gluSphere and gluQuadraticTexture in OpenGL.

    GLUT has routines that make it easier to create windows.

    What of the following are you using?
    1) version of OpenGL
    2) Windows OS and is it 64bit?
    3) IDE/compiler
    4) tutorial
  2. In Topic: Beginner Programmer Need Help Understanding Classes

    Posted 24 Apr 2015

    View Postarthurpawl, on 24 April 2015 - 05:38 PM, said:

    Thanks for the quick reply! So what is the reason for using the constructor if all those values (name, account#, and balance) are all already stored in the Account object?


    I'm quite happy to use default values for parameters. Any function can use them.

    The values are not already stored in the Account object. If you don't supply an argument then the parameter will be given the supplied value.

    You can test it by giving the default values more unusual values.

    The name was likely not set in the initialization list, because you have a fixed length char array for the name. A function would be needed to check the size.
  3. In Topic: Seg Fault in recursive sorting algorithm

    Posted 23 Apr 2015

    Hi, dualPivotQuicksort goes into a infinite recursive loop when the array is already sorted.

    This section is true and repeats.

      if(leftBound + 1 < rightBound - 1)
      {
        dualPivotQuicksort(array, leftBound, rightBound, ncomp, nswap);
      }
    
    
  4. In Topic: Whats the best way to do collision detection ?

    Posted 23 Apr 2015

    Hi, you can test whether the player is colliding at the left or right and adjust the player, before testing for the ground.
  5. In Topic: Calculation in C

    Posted 21 Apr 2015

    It is highly likely that long is 32 bit.

My Information

Member Title:
Duke of Err
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
Delta Quadrant
Years Programming:
12
Programming Languages:
C,C++,HTML,CSS

Contact Information

E-mail:
Private
Website URL:
Website URL  http://

Comments

Page 1 of 1
  1. Photo

    GryphonClaws Icon

    10 Jan 2013 - 01:15
    Thanks #define. I can't believe I missed such a simple detail.
  2. Photo

    raghav.naganathan Icon

    07 Nov 2012 - 20:40
    Dude...before your reputation changes, I would like to tell you that it(729) is a perfect cube :) Cheers :)
Page 1 of 1