Changeset 328 for trunk/tests/gui_test


Ignore:
Timestamp:
09/02/14 03:38:18 (11 years ago)
Author:
epyon
Message:
  • support for basic gui element skinning (WIP)
  • window_manager fix for gui_test
Location:
trunk/tests/gui_test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/gui_test/gui_test.lua

    r321 r328  
    44        includedirs { "../../" }
    55        targetname "nv_gui_test"
    6         links { "nv-core", "nv-gl", "nv-gui" }
     6        links { "nv-core", "nv-gl", "nv-gui", "nv-sdl" }
    77        targetdir "../../bin"   
    88 
  • trunk/tests/gui_test/nv_gui_test.cc

    r321 r328  
    11#include <nv/gl/gl_device.hh>
    22#include <nv/gui/gui_environment.hh>
     3#include <nv/sdl/sdl_window_manager.hh>
    34#include <nv/interface/context.hh>
     5#include <nv/interface/window_manager.hh>
    46#include <nv/core/logging.hh>
    57#include <nv/core/logger.hh>
     
    1820        ~application();
    1921protected:
     22        nv::window_manager* m_wm;
    2023        nv::device* m_device;
    2124        nv::window* m_window;
     
    2831{
    2932        m_device = new nv::gl_device();
    30         m_window = m_device->create_window( 800, 600, false );
     33        m_wm     = new nv::sdl::window_manager;
     34        m_window = m_wm->create_window( m_device, 800, 600, false );
    3135        m_clear_state.buffers = nv::clear_state::COLOR_AND_DEPTH_BUFFER;
    3236        m_guienv = new nv::gui::environment( m_window );
  • trunk/tests/gui_test/test.style.lua

    r127 r328  
    66
    77        window = {
    8                 border = 2,
    9                 border_color = { 0.2, 0.2, 0.4, 1.0 },
     8                --border = 2,
     9                --border_color = { 0.2, 0.2, 0.4, 1.0 },
     10                skin = "button.png",
    1011        }
    1112}
Note: See TracChangeset for help on using the changeset viewer.