Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #3K
~2K People Reached
Favorite Tags
c++ x 21
c x 3

10 Posted Topics

Member Avatar for Yle

First: I believe you still did not get what is meant by glOrtho. It sets the dimensions of your 3d Cordinate System. You would like to have it good long, wide and deep, so that you are comfortable drawing a moving shape in it. The sytanx ist: [code=C++] void glOrtho( …

Member Avatar for mrnutty
0
103
Member Avatar for dark_lord

I am not sure how detailed you want to do things and how organized your game is. But here is what I think. Well, you need first something like an Collision Manager. A class that keeps track of all positions of textures within your visible range. All positions are stored …

Member Avatar for dark_lord
0
91
Member Avatar for poliet

Hello, I have a class with as many objects I need. I am changing the value of some member variables individually here and there, however, now I want to be able to change one specific member variable of all objects e.g. bool visibility at once, so that all objects wll …

Member Avatar for poliet
0
84
Member Avatar for dennis.wu

Not sure, as I am a novice myself. But I think "const" is a promise not to change the class members. What are your class members? Bird b is a permanent class member. -> Thus b you cannot change when you call set(int) in birdhouse as it is its class …

Member Avatar for dennis.wu
0
148
Member Avatar for Yle

I don't know what other calls you have there... but first make sure everything is off: [code=C++] glDisable(GL_TEXTURE_2D); glDisable(GL_BLEND); glDisable(GL_ALPHA); [/code] Then... Also it looks from there that Ortho Call is too vast scaled. Ortho sets a cordinte system. Your cordinate system goes from 0 to w (or h), thus …

Member Avatar for poliet
0
152
Member Avatar for ndfi54

I've rewritten slightlly the code referring to getArray via iostream as I do not have the necessary includes, however I haven't change your sorting algoritm. The array is displaying the values in ascending order. [code=C++] #include <iostream> #define size 7 void sortArray (int num[]); int indexMax(int num[], int low, int …

Member Avatar for poliet
0
159
Member Avatar for hollywoood69

Not maybe much of a C++ question, but rather a business issue. You have used a wrong formula in two places. On line 73 and 82 change your balane calculations into [code=C++] double balance = principle-principalPaid; //Line73 balance -= principalPaid; //Line 82 [/code] and you should be right. Also you …

Member Avatar for poliet
0
466
Member Avatar for bushimports

You have probably set draw to take a constant object but you are passing a reference and thus modifying the object it. The keyword constant protects you from unwanted modifications. Either pass by value or check your constant keywords. This one compiles fine. [code] #include <iostream> class Shape; class Circle; …

Member Avatar for mrnutty
0
932
Member Avatar for poliet

Hello, I was hinted for my cause in using a mastertemplate. I did and I swear my little programm was up and running late night just the way I wanted it. This morning, however, I did some other corner stuff and now it does not compile anymore.. just like that... …

Member Avatar for poliet
0
111
Member Avatar for poliet

Hello! I want to use static_cast<int> on a void* member Variable in another class. (class aMessage). aMessage class has a public variable void* pVar. While using static_cast on a local variable is running smoothly, I get a compiler error trying to cast it on the aMessage->pVar. pVar is being declared …

Member Avatar for poliet
0
220

The End.