Hello community.
I'm completely new with C++ but i'm trying the Tutorials from the AppGameKit.
I'm now at the Bumble Bee Tutorial.
My Version is the AppGameKit IDE 2020.04.30c on Linux Kubuntu.
When I try to load the two sprites I have an Error that says that the agk.h could not be found.
The "template.cpp" includes the "template.h" with
In the template.cpp I have the following lines like it's said in the Tutorial:
void app::Begin(void)
{
agk::SetVirtualResolution (1920, 1080);
agk::SetClearColor( 151,170,204 ); // light blue
agk::SetSyncRate(60,0);
agk::SetScissor(0,0,0,0);
background = agk::LoadSprite("media/background.jpg");
bumble_bee = agk::LoadSprite("media/bumble.png");
}
The "template.h" includes "agk.h":
And I insert the lines:
class app
{
unsigned int background;
unsigned int bumble_bee;
public:
// constructor
app() { memset ( this, 0, sizeof(app)); }
// main app functions
void Begin( void );
int Loop( void );
void End( void );
};
Normally it should work...
So maybe their could be a problem with the INC directions in the Makefile.
I was looking if the agk.h file exists and it does at:
/home/filla/Dokumente/C++Libraries/common/include
In the makefile I wrote the lines:
INC = -I/home/filla/Dokumente/C++Libraries/common/include -I/home/filla/Dokumente/C++Libraries/common -I../interpreter -I/home/filla/Dokumente/C++Libraries/bullet -I/home/filla/Dokumente/C++Libraries/bullet/BulletCollision/CollisionShapes
Like I should do in the tutorial.
But why cant it find the agk.h file and dont set the background and the bumble?
i dont understand whats wrong...Maybe it's a stupid question but I cant fix it.
PS.: I was never writing in a forum like this. I hope that the "[" and the "]" set the codes in the codefields. didnt know which one by code I should use, sorry ^^
“The doer alone learneth.”
- Friedrich Nietzsche -