Changeset 820
- Timestamp:
- Aug 12, 2011, 6:33:15 PM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ps3app.cpp
r758 r820 14 14 15 15 #if defined __CELLOS_LV2__ 16 # include <sys/ppu_thread.h> /* sys_ppu_thread_get_stack_information */ 16 17 # include <sys/spu_initialize.h> 17 18 # include <sys/paths.h> /* SYS_HOST_ROOT */ … … 79 80 psglInit(&psglio); 80 81 82 #if 0 83 sys_ppu_thread_stack_t stack; 84 sys_ppu_thread_get_stack_information(&stack); 85 printf("stack starts at %p, ends at %p\n", stack.pst_addr, 86 (uint8_t *)stack.pst_addr + stack.pst_size); 87 #endif 88 81 89 PSGLdevice* psgl = psglCreateDeviceAuto(GL_ARGB_SCE, GL_DEPTH_COMPONENT24, 82 90 GL_MULTISAMPLING_4X_SQUARE_ROTATED_SCE); 83 91 GLuint w, h; 84 92 psglGetDeviceDimensions(psgl, &w, &h); 93 res = vec2i(w, h); 85 94 86 95 PSGLcontext *ctx = psglCreateContext(); -
trunk/src/video.cpp
r808 r820 34 34 private: 35 35 static mat4 proj_matrix, view_matrix; 36 #if defined ANDROID_NDK 36 #if defined ANDROID_NDK || defined __CELLOS_LV2__ 37 37 static vec2i saved_viewport; 38 38 #endif … … 42 42 mat4 VideoData::view_matrix; 43 43 44 #if defined ANDROID_NDK 44 #if defined ANDROID_NDK || defined __CELLOS_LV2__ 45 45 vec2i VideoData::saved_viewport = 0; 46 46 #endif … … 65 65 glViewport(0, 0, size.x, size.y); 66 66 67 #if defined ANDROID_NDK 67 #if defined ANDROID_NDK || defined __CELLOS_LV2__ 68 68 VideoData::saved_viewport = size; 69 69 #endif … … 183 183 #elif defined __CELLOS_LV2__ 184 184 // FIXME: use psglCreateDeviceAuto && psglGetDeviceDimensions 185 return vec2i(1920, 1080);185 return VideoData::saved_viewport; 186 186 #else 187 187 GLint v[4];
Note: See TracChangeset
for help on using the changeset viewer.