GameEngine.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * Copyright (c) 2011 Nokia Corporation.
  3. */
  4. #include "GameEngine.h"
  5. #include <memory.h>
  6. #include <string.h>
  7. using namespace GF;
  8. GameEngine::GameEngine() {
  9. };
  10. GameEngine::~GameEngine() {
  11. };
  12. bool GameEngine::startAudio( int frequenzy, int channels ) {
  13. return false;
  14. }
  15. void GameEngine::stopAudio() {
  16. }
  17. bool GameEngine::startSensors() {
  18. return false;
  19. }
  20. void GameEngine::stopSensors() {
  21. }
  22. int GameEngine::loadGLTexture( const char *fileName ) {
  23. return 0;
  24. }
  25. void GameEngine::releaseTexture(int textureHandle) {
  26. }
  27. const char* GameEngine::adjustPath(const char *inputPath, char *outputPath, int outputPathLength, bool *isOk) {
  28. if (strlen(inputPath) > outputPathLength) {
  29. if (isOk) (*isOk) = false;
  30. strcpy(outputPath, "");
  31. }
  32. else {
  33. if (isOk) (*isOk) = true;
  34. strcpy(outputPath, inputPath);
  35. }
  36. return outputPath;
  37. }
  38. void GameEngine::setUpdateAndPauseState(bool updatesDisabled, bool pauseResumeDisabled) {
  39. }
  40. #ifdef MY_OS_MEEGO
  41. bool GameEngine::isSwipeEnabled() {
  42. return false;
  43. }
  44. #endif