Ignore:
Timestamp:
Apr 28, 2011, 9:01:37 PM (9 years ago)
Author:
sam
Message:

ps3: start a minimal PS3 port using PSGL, but not CG yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/video.cpp

    r755 r758  
    2222#include "core.h"
    2323#include "lolgl.h"
     24
     25using namespace std;
    2426
    2527namespace lol
     
    189191
    190192    stdshader->Bind(); /* Required on GLES 2.x? */
     193#if !defined __CELLOS_LV2__ // Use cgGetNamedParameter etc.
    191194    GLuint uni;
    192195    uni = stdshader->GetUniformLocation("proj_matrix");
     
    194197    uni = stdshader->GetUniformLocation("view_matrix");
    195198    glUniformMatrix4fv(uni, 1, GL_FALSE, &view_matrix[0][0]);
     199#endif
    196200}
    197201
     
    221225{
    222226    GLint v[4];
     227#if defined __CELLOS_LV2__
     228    // FIXME: use psglCreateDeviceAuto && psglGetDeviceDimensions
     229    v[2] = 1920;
     230    v[3] = 1080;
     231#else
    223232    glGetIntegerv(GL_VIEWPORT, v);
     233#endif
    224234    int width = v[2], height = v[3];
    225235
     
    248258#if defined ANDROID_NDK
    249259    return saved_viewport;
     260#elif defined __CELLOS_LV2__
     261    // FIXME: use psglCreateDeviceAuto && psglGetDeviceDimensions
     262    return vec2i(1920, 1080);
    250263#else
    251264    GLint v[4];
Note: See TracChangeset for help on using the changeset viewer.