Hi, I am currently using tier 2 of AGKS. I am trying to implementing a simple scene system by referencing this guy tutorial :
http://thatgamesguy.co.uk/cpp-game-dev-6/
I have done this in another library like raylib and it works well. But in app game kit tier2, it gave me access violation error whenever I try to insert new element in unordered_map or map.
For example, I create an unorder_map in the class app in template.h and insert new element in begin() method in template.cpp
void app::Begin(void)
{
if ( agk::GetRenderer() )
{
agk::SetVirtualResolution (1024, 768);
agk::SetClearColor( 151,170,204 ); // light blue
agk::SetScissor(0,0,0,0);
}
_test.insert(std::pair<const char*, int>("Hello", 10));
}
After executing it just showed that I have access violation. To be honest I have no idea what is happening. Am I doing something wrong?