Blender V4.5
window.cpp File Reference
#include <cstdio>
#include <cstdlib>
#include "app/opengl/window.h"
#include "util/string.h"
#include "util/thread.h"
#include "util/version.h"
#include <SDL.h>
#include <epoxy/gl.h>

Go to the source code of this file.

Classes

struct  Window
 

Functions

static void window_display_text (int, int, const char *text)
 
void window_display_info (const char *info)
 
void window_display_help ()
 
static void window_display ()
 
static void window_reshape (const int width, const int height)
 
static bool window_keyboard (unsigned char key)
 
static void window_mouse (const int button, const int state, const int x, int y)
 
static void window_motion (const int x, const int y)
 
bool window_opengl_context_enable ()
 
void window_opengl_context_disable ()
 
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_redraw ()
 

Variables

CCL_NAMESPACE_BEGIN struct Window V
 

Function Documentation

◆ window_display()

◆ window_display_help()

void window_display_help ( )

Definition at line 96 of file window.cpp.

References CYCLES_VERSION_STRING, Window::height, info, V, w(), Window::width, and window_display_text().

◆ window_display_info()

void window_display_info ( const char * info)

Definition at line 75 of file window.cpp.

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

◆ window_display_text()

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

Definition at line 44 of file window.cpp.

References printf, 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 196 of file window.cpp.

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

Referenced by window_main_loop().

◆ window_main_loop()

◆ window_motion()

static void window_motion ( const int x,
const int y )
static

Definition at line 236 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 ( const int button,
const int state,
const int x,
int y )
static

Definition at line 212 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 257 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 250 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 351 of file window.cpp.

References Window::redraw, and V.

Referenced by session_init().

◆ window_reshape()

static void window_reshape ( const int width,
const int height )
static

Definition at line 184 of file window.cpp.

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

Referenced by window_main_loop().

Variable Documentation

◆ V

Referenced by btDeformableLinearElasticityForce::addScaledElasticForce(), btDeformableNeoHookeanForce::addScaledElasticForce(), Freestyle::BezierII(), BLI_ewa_filter(), bsdf_aniso_lambda(), camera_sample_panorama(), Freestyle::OGF::compute_curvature_tensor(), slim::compute_surface_gradient_matrix(), libmv::ComputeTrackingEquation(), slim::cotmatrix(), slim::cotmatrix_entries(), cross(), slim::doublearea(), slim::edge_lengths(), libmv::euclidean_resection::EuclideanResectionAnsarDaniilidis(), filter(), KDL::Frame::Frame(), KDL::Frame::Frame(), KDL::Frame2::Frame2(), KDL::Frame2::Frame2(), blender::workbench::get_world_shading_rotation_matrix(), btSoftBody::getRigidTransform(), getSkewSymmetricMatrix(), slim::grad(), slim::local_basis(), makeLambdaShape(), makeUpperBidiag(), mat3_polar_decompose(), blender::math::polar_decompose(), slim::polar_svd(), Freestyle::FEdgeXDetector::preProcessFace(), process(), Freestyle::FEdgeXDetector::ProcessSilhouetteFace(), blender::math::pseudo_invert(), pseudoinverse_m4_m4(), ray_triangle_intersect(), ray_triangle_intersect_self(), shadow_ray_smooth_surface_offset(), singularValueDecomposition(), singularValueDecomposition(), singularValueDecomposition(), slim::slim_precompute(), sort(), Freestyle::OGF::sphere_clip_vector(), slim::squared_edge_lengths(), KDL::svd_eigen_HH(), svd_m4(), Freestyle::StrokeTesselator::Tesselate(), blender::math::transform_point(), triangle_light_pdf(), triangle_light_sample(), triangle_world_space_vertices(), triple(), window_display(), window_display_help(), window_display_info(), window_keyboard(), window_main_loop(), window_motion(), window_mouse(), window_opengl_context_disable(), window_opengl_context_enable(), window_redraw(), window_reshape(), and zeroChase().