Callback type definitions. More...
#include "d3d.hpp"
#include "time.hpp"
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/function.hpp>
#include <boost/optional.hpp>
Go to the source code of this file.
Namespaces | |
namespace | tk11 |
Typedefs | |
typedef boost::optional< LRESULT > | tk11::Message_Result |
Optional result of window procedure. | |
typedef boost::function< void(ID3D11Device_ptr)> | tk11::Init_Callback |
Callback type for scene initialization. | |
typedef boost::function< void(ID3D11DeviceContext_ptr, ID3D11RenderTargetView_ptr, ID3D11DepthStencilView_ptr)> | tk11::Render_Callback |
Callback type for scene rendering. | |
typedef boost::function< void(ID3D11DeviceContext_ptr)> | tk11::Aux_Render_Callback |
Callback type for auxiliary scene rendering. | |
typedef boost::function< void(const Duration &)> | tk11::Update_Callback |
Callback type for scene update. | |
typedef boost::function< void(unsigned int, unsigned int, bool, ID3D11Device_ptr, IDXGISwapChain_ptr, ID3D11Texture2D_ptr)> | tk11::Resize_Callback |
Callback type for target window resize. | |
typedef boost::function < Message_Result(HWND, UINT, WPARAM, LPARAM)> | tk11::Message_Callback |
Callback type for windows message hook. | |
typedef boost::function< void()> | tk11::Deactivate_Callback |
Callback type for window deactivation. | |
typedef boost::function< void()> | tk11::Activate_Callback |
Callback type for window activation. | |
typedef boost::function< void(int, int)> | tk11::Mouse_Move_Callback |
Callback type for mouse pointer movement. | |
typedef boost::function< void()> | tk11::Mouse_Enter_Callback |
Callback type for mouse pointer entering the window. | |
typedef boost::function< void()> | tk11::Mouse_Leave_Callback |
Callback type for mouse pointer leaving the window. | |
typedef boost::function< void(Mouse_Button, int, int)> | tk11::Mouse_Down_Callback |
Callback type for mouse button press. | |
typedef boost::function< void(Mouse_Button, int, int)> | tk11::Mouse_Up_Callback |
Callback type for mouse button release. | |
typedef boost::function< void(int, int)> | tk11::Mouse_Motion_Callback |
Callback type for high precision mouse motion. | |
typedef boost::function< void(int, int, int)> | tk11::Mouse_Wheel_Callback |
Callback type for mouse wheel motion. | |
typedef boost::function< void(unsigned int)> | tk11::Key_Down_Callback |
Callback type for key press. | |
typedef boost::function< void(unsigned int)> | tk11::Key_Up_Callback |
Callback type for key release. | |
typedef boost::function< void(unsigned int)> | tk11::Key_Repeat_Callback |
Callback type for key repeat. | |
typedef boost::function< void(unsigned int)> | tk11::Char_Input_Callback |
Callback type for character input. | |
Enumerations | |
enum | tk11::Mouse_Button { tk11::left_button = 0, tk11::middle_button = 1, tk11::right_button = 2, tk11::extra_button1 = 3, tk11::extra_button2 = 4 } |
Mouse button identifiers. More... | |
Functions | |
void | init (tk11::ID3D11Device_ptr device) |
Callback for scene initialization (callback). | |
void | render (tk11::ID3D11DeviceContext_ptr context, tk11::ID3D11RenderTargetView_ptr render_target, ID3D11DepthStencilView_ptr depth_stencil) |
Callback for scene rendering (callback). | |
void | aux_render (tk11::ID3D11DeviceContext_ptr context) |
Callback for auxiliary rendering (callback). | |
void | update (const tk11::Duration &elapsed_time) |
Callback for auxiliary rendering (callback). | |
void | resize (unsigned int x_resolution, unsigned int y_resolution, bool fullscreen, tk11::ID3D11Device_ptr device, tk11::IDXGISwapChain_ptr swap_chain, tk11::ID3D11Texture2D_ptr back_buffer) |
Callback for target window resize (callback). | |
tk11::Message_Result | message (HWND window, UINT message, WPARAM wparam, LPARAM lparam) |
Callback for windows message hook (callback). | |
void | deactivate () |
Callback for window deactivation (callback). | |
void | activate () |
Callback for window activation (callback). | |
void | mouse_move (int x, int y) |
Callback for mouse pointer movement (callback). | |
void | mouse_enter () |
Callback for mouse pointer entering the window (callback). | |
void | mouse_leave () |
Callback for mouse pointer leaving the window (callback). | |
void | mouse_down (tk11::Mouse_Button button, int x, int y) |
Callback for mouse button press (callback). | |
void | mouse_up (tk11::Mouse_Button button, int x, int y) |
Callback for mouse button release (callback). | |
void | mouse_motion (int delta_x, int delta_y) |
Callback for high-precision mouse motion (callback). | |
void | mouse_wheel (int delta, int x, int y) |
Callback for mouse wheel movement (callback). | |
void | key_down (unsigned int key) |
Callback for key press (callback). | |
void | key_up (unsigned int key) |
Callback for key release (callback). | |
void | key_repeat (unsigned int key) |
Callback for key repeat (callback). | |
void | char_input (unsigned int char_) |
Callback for character input(callback). | |
Variables | |
const boost::none_t | tk11::not_handled = boost::none |
Default result of a window procedure. |
Callback type definitions.