Blender V5.0
window.cpp File Reference
#include <cstdio>
#include <cstdlib>
#include "app/opengl/window.h"
#include "util/log.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()

void window_display ( )
static

Definition at line 142 of file window.cpp.

References V, window_opengl_context_disable(), and window_opengl_context_enable().

Referenced by window_main_loop().

◆ window_display_help()

void window_display_help ( )

Definition at line 97 of file window.cpp.

References CYCLES_VERSION_STRING, V, w(), and window_display_text().

◆ window_display_info()

void window_display_info ( const char * info)

Definition at line 76 of file window.cpp.

References V, and window_display_text().

◆ window_display_text()

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

Definition at line 45 of file window.cpp.

References LOG_INFO_IMPORTANT, printf, x, and y.

Referenced by window_display_help(), and window_display_info().

◆ window_keyboard()

bool window_keyboard ( unsigned char key)
static

Definition at line 197 of file window.cpp.

References V.

Referenced by window_main_loop().

◆ window_main_loop()

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 )

Definition at line 264 of file window.cpp.

References initf, LOG_ERROR, V, window_display(), window_keyboard(), window_motion(), window_mouse(), and window_reshape().

Referenced by main().

◆ window_motion()

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

Definition at line 237 of file window.cpp.

References V, x, and y.

Referenced by window_main_loop().

◆ window_mouse()

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

Definition at line 213 of file window.cpp.

References state, V, x, and y.

Referenced by window_main_loop().

◆ window_opengl_context_disable()

void window_opengl_context_disable ( )

Definition at line 258 of file window.cpp.

References V.

Referenced by session_init(), and window_display().

◆ window_opengl_context_enable()

bool window_opengl_context_enable ( )

Definition at line 251 of file window.cpp.

References V.

Referenced by session_init(), and window_display().

◆ window_redraw()

void window_redraw ( )

Definition at line 352 of file window.cpp.

References V.

Referenced by session_init().

◆ window_reshape()

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

Definition at line 185 of file window.cpp.

References V.

Referenced by window_main_loop().

Variable Documentation

◆ V

Referenced by btDeformableLinearElasticityForce::addScaledElasticForce(), btDeformableNeoHookeanForce::addScaledElasticForce(), Freestyle::BezierII(), BKE_ocean_is_valid(), 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(), KDL::Rall2d< double, double, double >::D(), KDL::Rall2d< double, double, double >::DD(), KDL::Rall1d< double >::deriv(), slim::doublearea(), slim::edge_lengths(), libmv::euclidean_resection::EuclideanResectionAnsarDaniilidis(), filter(), blender::workbench::get_world_shading_rotation_matrix(), btSoftBody::getRigidTransform(), getSkewSymmetricMatrix(), slim::grad(), KDL::Rall1d< double >::Gradient(), slim::local_basis(), makeLambdaShape(), makeUpperBidiag(), mat3_polar_decompose(), KDL::Rotation::operator*(), blender::math::polar_decompose(), slim::polar_svd(), Freestyle::FEdgeXDetector::preProcessFace(), blender::io::serialize::PrimitiveValue< int64_t, eValueType::Int >::PrimitiveValue(), process(), Freestyle::FEdgeXDetector::ProcessSilhouetteFace(), blender::math::pseudo_invert(), pseudoinverse_m4_m4(), KDL::Rall2d< double, double, double >::Rall2d(), KDL::Rall2d< double, double, double >::Rall2d(), ray_triangle_intersect(), ray_triangle_intersect_self(), CCL_NAMESPACE_BEGIN::ShaderNodeBuilder< T >::set(), CCL_NAMESPACE_BEGIN::ShaderNodeBuilder< T >::set_param(), 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().