hi there
i have a odd problem , i have written a game engine for a project , when i run an analizer from visual studio over it .
and my loop 47% off the time , now thisis after loading , so the...
Type: Posts; User: thedodgeruk
hi there
i have a odd problem , i have written a game engine for a project , when i run an analizer from visual studio over it .
and my loop 47% off the time , now thisis after loading , so the...
i cant see how its possible but would like to make sure
i am using an xml parser to set up a game scene
but need to be able to do
engine->createModel<CmodelBasic>()
...
cheers , it looks like is the same thing as templates , dont seam to like it when you put them in the cpp file
tryed making a it a static and got exact same thing
bool MySort(CModel* entity1 , CModel* entity2)
{
return entity1->m_pDiffuseMap < entity2->m_pDiffuseMap;
}
std::sort (m_modelvector.begin(), m_modelvector.end(), MySort);
when i complie i get this message now
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppClean.targets(74,5): warning : Access to the path 'D:\3rd year project entity ver 1 -...
i have seen a diagram in a book many years ago to do with curves.
say i want to random generate a number between 1 and 10 , there is more chance of it picking a lower number than a high number...
i keep getting:
groupProjectDebug.exe has triggered a breakpoint
but there are no break points in the program , i have tryed putting one in and then
delete all break points but this...
cheers , i made it protected , i thought what i wanted was not possible , was trying to make it like the way a singleton works , but could not get it right :)
just the constructor
i have a base class and every thing is inherited from it .
i want to make that base class private but when i try the inherited class complains when it trys to pass arguments back to it from when...
no , erm .
when you start using the methods , intellesences comes up telling you what kind of arguments are needed to be filled in , but there is also a way that more informartion can be...
im using visual studio 2010
im creating methods in a class.
when i access the methods, i would like not only intelesence to help me compleate the methods i am calling but also some kind of...
i have finished my ai program , and i needs cleaning up , i think there might be some functions that are declared but never called anywere.
is there an easy way to find them
float& GetMatrix(IModel* model)
{
float matrix[4][4]; //// not my code
model->GetMatrix( &matrix[0][0] ); // not my code
return &matrix;
}
i have a vector and want to transfer it to a matrix.
its a directional vector for moving localZ.
so i put it into matrix[2][0] and matrix[2][1] and matrix[2][2] //Z
so when i move...
i take it is
private:
then
public:
but is it methods or members first
i have this code
#include <stdio.h>
#include <iostream>
using namespace std;
void DisplayMine()
{
#include <iostream>
#include <string>
#include <deque>
using namespace std;
#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
struct myStruct
{