Blender V4.5
window.h File Reference

Go to the source code of this file.

Typedefs

using WindowInitFunc = void (*)()
using WindowExitFunc = void (*)()
using WindowResizeFunc = void (*)(int, int)
using WindowDisplayFunc = void (*)()
using WindowKeyboardFunc = void (*)(unsigned char)
using WindowMotionFunc = void (*)(int, int, int)

Functions

void window_main_loop (const char *title, const int width, const int height, WindowInitFunc initf, WindowExitFunc exitf, WindowResizeFunc resize, WindowDisplayFunc display, WindowKeyboardFunc keyboard, WindowMotionFunc motion)
void window_display_info (const char *info)
void window_display_help ()
void window_redraw ()
bool window_opengl_context_enable ()
void window_opengl_context_disable ()

Typedef Documentation

◆ WindowDisplayFunc

using WindowDisplayFunc = void (*)()

Definition at line 15 of file window.h.

◆ WindowExitFunc

using WindowExitFunc = void (*)()

Definition at line 13 of file window.h.

◆ WindowInitFunc

using WindowInitFunc = void (*)()

Definition at line 12 of file window.h.

◆ WindowKeyboardFunc

using WindowKeyboardFunc = void (*)(unsigned char)

Definition at line 16 of file window.h.

◆ WindowMotionFunc

using WindowMotionFunc = void (*)(int, int, int)

Definition at line 17 of file window.h.

◆ WindowResizeFunc

using WindowResizeFunc = void (*)(int, int)

Definition at line 14 of file window.h.

Function Documentation

◆ window_display_help()

void window_display_help ( )

◆ window_display_info()

void window_display_info ( const char * info)

Definition at line 75 of file window.cpp.

References Window::height, V, Window::width, window_display_info(), and window_display_text().

Referenced by window_display_info().

◆ window_main_loop()

◆ window_opengl_context_disable()

void window_opengl_context_disable ( )

◆ window_opengl_context_enable()

bool window_opengl_context_enable ( )

◆ window_redraw()

void window_redraw ( )

Definition at line 351 of file window.cpp.

References Window::redraw, V, and window_redraw().

Referenced by session_init(), and window_redraw().