Blender
V3.3
|
#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 |
|
static |
Definition at line 141 of file window.cpp.
References Window::display, Window::exitf, Window::first_display, glLoadIdentity, glMatrixMode, glOrtho, glRasterPos3f, Window::height, Window::initf, V, Window::width, Window::window, window_opengl_context_disable(), and window_opengl_context_enable().
Referenced by window_main_loop().
void window_display_help | ( | ) |
Definition at line 96 of file window.cpp.
References CYCLES_VERSION_STRING, glColor3f, glColor4f, glDisable, glEnable, glRectf, Window::height, V, w(), Window::width, window_display_text(), x2, and y1.
void window_display_info | ( | const char * | info | ) |
Definition at line 75 of file window.cpp.
References glColor3f, glColor4f, glDisable, glEnable, glRectf, Window::height, height, V, Window::width, and window_display_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().
|
static |
Definition at line 195 of file window.cpp.
References Window::exitf, Window::keyboard, and V.
Referenced by 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 | ||
) |
Definition at line 259 of file window.cpp.
References Window::display, Window::exitf, Window::first_display, Window::gl_context, Window::height, height, Window::initf, initf, Window::keyboard, Window::motion, NULL, Window::redraw, Window::resize, V, Window::width, width, Window::window, window_display(), window_keyboard(), window_motion(), window_mouse(), and window_reshape().
Referenced by main().
|
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().
|
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().
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().
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().
void window_redraw | ( | ) |
Definition at line 347 of file window.cpp.
References Window::redraw, and V.
Referenced by session_init().
|
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().
CCL_NAMESPACE_BEGIN struct Window V |
Referenced by btDeformableLinearElasticityForce::addScaledElasticForce(), btDeformableNeoHookeanForce::addScaledElasticForce(), Freestyle::BezierII(), BLI_ewa_filter(), bsdf_principled_diffuse_compute_brdf(), bsdf_principled_diffuse_eval_reflect(), bsdf_principled_sheen_eval_reflect(), calculate_principled_sheen_brdf(), camera_sample_panorama(), Freestyle::OGF::compute_curvature_tensor(), libmv::ComputeTrackingEquation(), cross(), libmv::euclidean_resection::EuclideanResectionAnsarDaniilidis(), filter(), KDL::Frame::Frame(), KDL::Frame2::Frame2(), btSoftBody::getRigidTransform(), getSkewSymmetricMatrix(), makeLambdaShape(), makeUpperBidiag(), mat3_polar_decompose(), math_matrix_jacobi_eigendecomposition(), Freestyle::FEdgeXDetector::preProcessFace(), process(), Freestyle::FEdgeXDetector::ProcessSilhouetteFace(), pseudoinverse_m4_m4(), ray_triangle_intersect(), ray_triangle_intersect_self(), shadow_ray_smooth_surface_offset(), singularValueDecomposition(), sort(), Freestyle::OGF::sphere_clip_vector(), KDL::svd_eigen_HH(), svd_m4(), Freestyle::StrokeTesselator::Tesselate(), 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().