Ignore:
Timestamp:
Feb 5, 2013, 5:07:09 PM (7 years ago)
Author:
touky
Message:

render : Added DebugRenderMode & corresponding shaders. naive (VERY) implementation in MeshViewer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/video.h

    r2183 r2370  
    4242};
    4343
     44struct DebugRenderMode
     45{
     46    enum Value
     47    {
     48        //Add your new rendermode at your convenience
     49        Default,
     50        Wireframe,
     51        Lighting,
     52        Normal,
     53        UV,
     54
     55        Max
     56    }
     57    m_value;
     58
     59    inline DebugRenderMode(Value v) : m_value(v) {}
     60    inline operator Value() { return m_value; }
     61};
     62
    4463class Video
    4564{
     
    5170    static void SetClearColor(vec4 color);
    5271    static void SetClearDepth(float f);
     72    static void SetDebugRenderMode(DebugRenderMode d);
     73    static DebugRenderMode GetDebugRenderMode();
    5374    static void Clear(ClearMask m);
    5475    static void Capture(uint32_t *buffer);
Note: See TracChangeset for help on using the changeset viewer.