Blender  V3.3
Classes | Functions | Variables
window.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include "app/opengl/window.h"
#include "util/string.h"
#include "util/thread.h"
#include "util/time.h"
#include "util/version.h"
#include <GL/glew.h>
#include <SDL.h>

Go to the source code of this file.

Classes

struct  Window
 

Functions

static void window_display_text (int x, int y, const char *text)
 
void window_display_info (const char *info)
 
void window_display_help ()
 
static void window_display ()
 
static void window_reshape (int width, int height)
 
static bool window_keyboard (unsigned char key)
 
static void window_mouse (int button, int state, int x, int y)
 
static void window_motion (int x, int y)
 
bool window_opengl_context_enable ()
 
void window_opengl_context_disable ()
 
void window_main_loop (const char *title, int width, int height, WindowInitFunc initf, WindowExitFunc exitf, WindowResizeFunc resize, WindowDisplayFunc display, WindowKeyboardFunc keyboard, WindowMotionFunc motion)
 
void window_redraw ()
 

Variables

CCL_NAMESPACE_BEGIN struct Window V
 

Function Documentation

◆ window_display()

static void window_display ( )
static

◆ window_display_help()

void window_display_help ( )

◆ window_display_info()

void window_display_info ( const char *  info)

◆ window_display_text()

static void window_display_text ( int  x,
int  y,
const char *  text 
)
static

Definition at line 44 of file window.cpp.

References Freestyle::c, glBitmap, glRasterPos3f, x, and y.

Referenced by window_display_help(), and window_display_info().

◆ window_keyboard()

static bool window_keyboard ( unsigned char  key)
static

Definition at line 195 of file window.cpp.

References Window::exitf, Window::keyboard, and V.

Referenced by window_main_loop().

◆ window_main_loop()

void window_main_loop ( const char *  title,
int  width,
int  height,
WindowInitFunc  initf,
WindowExitFunc  exitf,
WindowResizeFunc  resize,
WindowDisplayFunc  display,
WindowKeyboardFunc  keyboard,
WindowMotionFunc  motion 
)

◆ window_motion()

static void window_motion ( int  x,
int  y 
)
static

Definition at line 233 of file window.cpp.

References Window::motion, Window::mouseBut0, Window::mouseX, Window::mouseY, V, x, and y.

Referenced by window_main_loop().

◆ window_mouse()

static void window_mouse ( int  button,
int  state,
int  x,
int  y 
)
static

Definition at line 209 of file window.cpp.

References Window::mouseBut0, Window::mouseBut2, Window::mouseX, Window::mouseY, state, V, x, and y.

Referenced by window_main_loop().

◆ window_opengl_context_disable()

void window_opengl_context_disable ( )

Definition at line 253 of file window.cpp.

References Window::gl_context_mutex, V, and Window::window.

Referenced by session_init(), and window_display().

◆ window_opengl_context_enable()

bool window_opengl_context_enable ( )

Definition at line 246 of file window.cpp.

References Window::gl_context, Window::gl_context_mutex, V, and Window::window.

Referenced by session_init(), and window_display().

◆ window_redraw()

void window_redraw ( )

Definition at line 347 of file window.cpp.

References Window::redraw, and V.

Referenced by session_init().

◆ window_reshape()

static void window_reshape ( int  width,
int  height 
)
static

Definition at line 183 of file window.cpp.

References Window::height, height, Window::resize, V, Window::width, and width.

Referenced by window_main_loop().

Variable Documentation

◆ V