Changeset 269 for trunk/tests/gui_test


Ignore:
Timestamp:
06/21/14 19:38:56 (11 years ago)
Author:
epyon
Message:
  • gui::environment uses a single vector of static elements
  • gui::environment operates on gui::handle's explicitly
  • indexes via gui::handle are reusable, but counted!
  • full DOD achieved (making a note here, huge success!)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/gui_test/nv_gui_test.cc

    r268 r269  
    2323        nv::clear_state m_clear_state;
    2424        nv::gui::environment* m_guienv;
    25         std::vector<nv::gui::element*>   m_windows;
     25        std::vector<nv::gui::handle>   m_windows;
    2626};
    2727
     
    8686        glm::ivec2 a( std::rand() % 600, std::rand() % 400 );
    8787        glm::ivec2 b( std::rand() % 200 + 40, std::rand() % 200 + 40 );
    88         nv::gui::element* e = m_guienv->create_element( nullptr, nv::rectangle(a).dim(b) );
     88        nv::gui::handle e = m_guienv->create_element( nv::rectangle(a).dim(b) );
    8989        m_guienv->set_class( e, "window" );
    9090        m_guienv->set_text( e, "Window "+nv::to_string(m_windows.size()+1) );
Note: See TracChangeset for help on using the changeset viewer.