
The model and animation created using milkshape.
If you want it in your project, just contact me and i'll give it for free ^^.
#include "StdAfx.h"
#include "Testing.h"
#include "IntelGamingTDKAPI.h"
#define _CRTDBG_MAP_ALLOC
#include
#include
#include
#include
using namespace std;
#ifdef _DEBUG
#define SET_CRT_DEBUG_FIELD(a) \
_CrtSetDbgFlag((a) _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG))
#define CLEAR_CRT_DEBUG_FIELD(a) \
_CrtSetDbgFlag(~(a) & _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG))
#else
#define SET_CRT_DEBUG_FIELD(a) ((void) 0)
#define CLEAR_CRT_DEBUG_FIELD(a) ((void) 0)
#endif
Testing::Testing(void)
{
Feature();
}
void Testing::Feature()
{
IntelLaptopGamingTDKInterface *IGT = IntelLaptopGamingTDKInterface::GetTDKInterface();
if(!IGT)
return;
/**
* Is this a laptop ??
*/
cout << "\nIS LAPTOP ? " <<>IsLaptop();
/**
* Get number of core on per physical processor
*/
cout << "\nCPU CORE ? " <<>GetNumCoresPerProcessor();
/**
* Get total number of processors as seen by OS
*/
cout << "\nCPU COUNT ? " <GetNumProcessors();
// and just try the other methods..
// Memory leaks checking
// 6 mem leaks because pointers on heap aren't deleted till function
// exits. We call this function before the pointers go out of scope.
_CrtDumpMemoryLeaks();
}
Testing::~Testing(void)
{
}
I use VC 2005 for the compiler.
Following are the steps to compile your code using this API.
Have fun and cheers.
Cheers!
The learning curve is quite fast and easy if u know basics of algorithm or how it works, it looks very similiar to pseudocode ^^ for makin a program. I managed to learn and create a simple game in an hour. Here's some screenshot
The game is really simple, the cat is movin up and down (randomly) and we must save the mouse ?? hehe by pressing the space button at the right time !
u should try it !! because even a kid can make a game using SCRATCH ^^
next post i'll give you direction about how to use this software ^^.