g4tools  5.4.0
Public Member Functions | Protected Attributes | List of all members
tools::Windows::sg_viewer::_glarea Class Reference
Inheritance diagram for tools::Windows::sg_viewer::_glarea:
Inheritance graph
[legend]
Collaboration diagram for tools::Windows::sg_viewer::_glarea:
Collaboration graph
[legend]

Public Member Functions

virtual void paint (unsigned int a_w, unsigned int a_h)
 
 _glarea (HWND a_parent, parent_viewer &a_viewer)
 
- Public Member Functions inherited from tools::Windows::glarea
virtual void resize (unsigned int, unsigned int)
 
virtual void close ()
 
virtual void left_button_up (unsigned int a_x, unsigned int a_y)
 
virtual void left_button_down (unsigned int a_x, unsigned int a_y)
 
virtual void mouse_move (unsigned int a_x, unsigned int a_y, bool)
 
 glarea (HWND a_parent)
 
virtual ~glarea ()
 
void set_client_area_size (unsigned int a_w, unsigned int a_h)
 
HWND hwnd () const
 
void post_WM_PAINT () const
 
void send_WM_PAINT () const
 
void wm_paint ()
 
void set_device_interactor (tools::sg::device_interactor *a_interactor)
 

Protected Attributes

parent_viewerm_viewer
 
- Protected Attributes inherited from tools::Windows::glarea
HWND m_parent
 
HWND m_hwnd
 
HGLRC m_context
 
HDC m_HDC
 
bool m_touch_available
 
tools::sg::device_interactorm_interactor
 

Additional Inherited Members

- Protected Member Functions inherited from tools::Windows::glarea
 glarea (const glarea &a_from)
 
glareaoperator= (const glarea &)
 
bool is_touch_event ()
 
tools::key_code convert (WPARAM a_key)
 
- Static Protected Member Functions inherited from tools::Windows::glarea
static LRESULT CALLBACK proc (HWND a_hwnd, UINT a_msg, WPARAM a_wparam, LPARAM a_lparam)
 
static bool SetWindowPixelFormat (HDC a_HDC)
 
static void wm__destroy (HWND a_hwnd)
 

Detailed Description

Definition at line 67 of file sg_viewer.

Constructor & Destructor Documentation

◆ _glarea()

tools::Windows::sg_viewer::_glarea::_glarea ( HWND  a_parent,
parent_viewer a_viewer 
)
inline

Definition at line 74 of file sg_viewer.

75  :glarea(a_parent)
76  ,m_viewer(a_viewer)
77  {}

Member Function Documentation

◆ paint()

virtual void tools::Windows::sg_viewer::_glarea::paint ( unsigned int  a_w,
unsigned int  a_h 
)
inlinevirtual

Reimplemented from tools::Windows::glarea.

Definition at line 69 of file sg_viewer.

69  {
70  m_viewer.set_size(a_w,a_h);
71  m_viewer.render();
72  }

Member Data Documentation

◆ m_viewer

parent_viewer& tools::Windows::sg_viewer::_glarea::m_viewer
protected

Definition at line 79 of file sg_viewer.


The documentation for this class was generated from the following file:
tools::sg::viewer::set_size
virtual void set_size(unsigned int a_w, unsigned int a_h)
Definition: viewer:26
tools::Windows::glarea::glarea
glarea(HWND a_parent)
Definition: glarea:67
tools::Windows::sg_viewer::_glarea::m_viewer
parent_viewer & m_viewer
Definition: sg_viewer:79
tools::sg::GL_viewer::render
void render()
Definition: GL_viewer:18