Search found 9 matches

by teckygamer
Sun Aug 15, 2010 6:24 pm
Forum: Beginners Help
Topic: Image disappearing upon resolution change
Replies: 3
Views: 798

There seem to be alot of bad pointers, one of each i have identified


#include "COptionState.h"




void COptionState::onEnter(CGame* game)
{
gui =
game->getUserInterface();

IVideoDriver* driver = game->getVideoDriver();

dimension2d<u32> screenSize =
driver->getScreenSize();

screenSize ...
by teckygamer
Sat Aug 14, 2010 11:33 pm
Forum: Beginners Help
Topic: Image disappearing upon resolution change
Replies: 3
Views: 798

Image disappearing upon resolution change

When i can the resolution to my device, the image rendering behind. This is link to another runtime error, in which, the options window wont reload when calling it again, i think something is missing. possibly the layout.

Where it exits

void COptionState::onLeave(CGame* game)
{

// remove our ...
by teckygamer
Thu Aug 05, 2010 8:43 am
Forum: Beginners Help
Topic: Link Error
Replies: 5
Views: 483

I figured out a fix which was to implement the destructor within the cpp file, however now i get this from the main.

Error 2 error LNK2019: unresolved external symbol "public: virtual __thiscall CStateGraphT<class CGame,struct irr::SEvent>::~CStateGraphT<class CGame,struct irr::SEvent>(void)" (??1 ...
by teckygamer
Wed Aug 04, 2010 7:21 am
Forum: Beginners Help
Topic: Link Error
Replies: 5
Views: 483

These classes throw an error because they have own destructor
in use


class CPausedState : public CStateT<CGame, SEvent>
{
public:
////!
CPausedState():;

//!//!
virtual ~CPausedState(); // Having this invokes the link error removing it helps


Have i unknowingly created duplicates. Should ...
by teckygamer
Tue Aug 03, 2010 7:22 am
Forum: Beginners Help
Topic: Link Error
Replies: 5
Views: 483

Ty
by teckygamer
Mon Aug 02, 2010 10:35 pm
Forum: Beginners Help
Topic: Link Error
Replies: 5
Views: 483

Link Error

Hi, have come across these link errors, but an not sure what they mean :? , tried troubleshooting but have drawn blank. Any help would be appreciated, thannk you

Error 4 error LNK2019: unresolved external symbol "public: virtual __thiscall CStateT<class CGame,struct irr::SEvent>::~CStateT<class ...
by teckygamer
Mon Aug 02, 2010 9:36 pm
Forum: Beginners Help
Topic: Csnnot Instaniate Abstract Class - State Machine
Replies: 2
Views: 314

Ty i have been looking at it for so long that i missed that fact it suppose to be a constant
by teckygamer
Mon Aug 02, 2010 8:38 pm
Forum: Beginners Help
Topic: Csnnot Instaniate Abstract Class - State Machine
Replies: 2
Views: 314

Csnnot Instaniate Abstract Class - State Machine

Hi, im currently try vitek's statemachine so that i can play if it and understand it, however i have come across a error,

main.cpp(85) : error C2259: 'CGame' : cannot instantiate abstract class
1> due to following members:
1> 'bool irr::IEventReceiver::OnEvent(const irr::SEvent &)' : is abstract
1 ...
by teckygamer
Wed Jul 28, 2010 8:26 pm
Forum: Game Programming
Topic: Efficient use of state mahcines
Replies: 1
Views: 1583

Efficient use of state mahcines

Hi im new to irrlicht and was wondering the best way for screen transition. Splash->Menu->Game(Several Sub States within the game)

The way i wish to implement it is: Creating a state machine, which contains custom nodes one which renders 2d image, another with the game and the menu, using ...