No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
10 Posted Topics
Re: 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( … | |
Re: 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 … | |
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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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; … | |
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... … | |
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 … |
The End.