Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
| Context not available. | |||||
| #include "IMB_imbuf.h" | #include "IMB_imbuf.h" | ||||
| #include "IMB_moviecache.h" | #include "IMB_moviecache.h" | ||||
| int GHOST_HACK_getFirstFile(char buf[]); | |||||
| // For BLF | // For BLF | ||||
| #include "BLF_api.h" | #include "BLF_api.h" | ||||
| #include "BLF_translation.h" | #include "BLF_translation.h" | ||||
| Context not available. | |||||
| if (BLI_exists(argv[argc-1])) { | if (BLI_exists(argv[argc-1])) { | ||||
| BLI_strncpy(filename, argv[argc-1], FILE_MAX); | BLI_strncpy(filename, argv[argc-1], FILE_MAX); | ||||
| } | } | ||||
| if (::strncmp(argv[argc-1], "-psn_", 5)==0) { | |||||
| static char firstfilebuf[512]; | |||||
| if (GHOST_HACK_getFirstFile(firstfilebuf)) { | |||||
| BLI_strncpy(filename, firstfilebuf, FILE_MAX); | |||||
| } | |||||
| } | |||||
| } | } | ||||
| srclen -= ::strlen("MacOS/blenderplayer"); | srclen -= ::strlen("MacOS/blenderplayer"); | ||||
| Context not available. | |||||
| if (scr_saver_mode != SCREEN_SAVER_MODE_CONFIGURATION) | if (scr_saver_mode != SCREEN_SAVER_MODE_CONFIGURATION) | ||||
| #endif | #endif | ||||
| { | { | ||||
| if (SYS_GetCommandLineInt(syshandle, "nomipmap", 0)) { | |||||
| GPU_set_mipmap(0); | |||||
| } | |||||
| GPU_set_anisotropic(U.anisotropic_filter); | |||||
| GPU_set_gpu_mipmapping(U.use_gpu_mipmap); | |||||
| // Create the system | // Create the system | ||||
| if (GHOST_ISystem::createSystem() == GHOST_kSuccess) { | if (GHOST_ISystem::createSystem() == GHOST_kSuccess) { | ||||
| GHOST_ISystem* system = GHOST_ISystem::getSystem(); | GHOST_ISystem* system = GHOST_ISystem::getSystem(); | ||||
| Context not available. | |||||
| else | else | ||||
| app.startWindow(title, windowLeft, windowTop, windowWidth, windowHeight, | app.startWindow(title, windowLeft, windowTop, windowWidth, windowHeight, | ||||
| stereoWindow, stereomode, aasamples); | stereoWindow, stereomode, aasamples); | ||||
| if (SYS_GetCommandLineInt(syshandle, "nomipmap", 0)) { | |||||
| GPU_set_mipmap(0); | |||||
| } | |||||
| GPU_set_anisotropic(U.anisotropic_filter); | |||||
| GPU_set_gpu_mipmapping(U.use_gpu_mipmap); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||