When writing the X11 (linux) implementation there was a problem with X11 defining a "Display" type and we also have a Display class in the engine. So to fix that problem and minimize the risk for running into other name conflicts. We move everything from global namespace.
29 lines
No EOL
449 B
C++
29 lines
No EOL
449 B
C++
|
|
#ifndef SPECTRE_PLATFORM_H
|
|
#define SPECTRE_PLATFORM_H
|
|
|
|
namespace sp {
|
|
|
|
class PlatformInput;
|
|
class PlatformDisplay;
|
|
class MessageQueue;
|
|
|
|
class PlatformApplication
|
|
{
|
|
public :
|
|
virtual void init() = 0;
|
|
|
|
virtual void shutdown() = 0;
|
|
|
|
//virtual PlatformDisplay& getDisplay() = 0;
|
|
|
|
virtual PlatformInput& getInput() = 0;
|
|
|
|
virtual MessageQueue& getMessageQueue() = 0;
|
|
|
|
virtual void update() = 0;
|
|
};
|
|
|
|
} // namespace sp
|
|
|
|
#endif /* SPECTRE_PLATFORM_H */ |