|
Blender V5.3
|
#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 <SDL3/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 |
|
static |
Definition at line 142 of file window.cpp.
References Window::display, Window::exitf, Window::first_display, Window::height, Window::initf, V, Window::width, Window::window, window_display(), window_opengl_context_disable(), and window_opengl_context_enable().
Referenced by window_display(), and window_main_loop().
| void window_display_help | ( | ) |
Definition at line 97 of file window.cpp.
References CYCLES_VERSION_STRING, Window::height, V, w(), Window::width, window_display_help(), and window_display_text().
Referenced by window_display_help().
| void window_display_info | ( | const char * | info | ) |
Definition at line 76 of file window.cpp.
References Window::height, V, Window::width, window_display_info(), and window_display_text().
Referenced by window_display_info().
|
static |
Definition at line 45 of file window.cpp.
References LOG_INFO_IMPORTANT, printf, window_display_text(), x, and y.
Referenced by window_display_help(), window_display_info(), and window_display_text().
|
static |
Definition at line 197 of file window.cpp.
References Window::exitf, Window::keyboard, V, and window_keyboard().
Referenced by window_keyboard(), and 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 Window::display, Window::exitf, Window::first_display, Window::gl_context, Window::height, Window::initf, Window::keyboard, LOG_ERROR, Window::motion, Window::redraw, Window::resize, V, Window::width, Window::window, window_display(), window_keyboard(), window_main_loop(), window_motion(), window_mouse(), and window_reshape().
Referenced by main(), and window_main_loop().
|
static |
Definition at line 237 of file window.cpp.
References Window::motion, Window::mouseBut0, Window::mouseX, Window::mouseY, V, window_motion(), x, and y.
Referenced by window_main_loop(), and window_motion().
|
static |
Definition at line 213 of file window.cpp.
References Window::mouseBut0, Window::mouseBut2, Window::mouseX, Window::mouseY, state, V, window_mouse(), x, and y.
Referenced by window_main_loop(), and window_mouse().
| void window_opengl_context_disable | ( | ) |
Definition at line 258 of file window.cpp.
References Window::gl_context_mutex, V, Window::window, and window_opengl_context_disable().
Referenced by session_init(), window_display(), and window_opengl_context_disable().
| bool window_opengl_context_enable | ( | ) |
Definition at line 251 of file window.cpp.
References Window::gl_context, Window::gl_context_mutex, V, Window::window, and window_opengl_context_enable().
Referenced by session_init(), window_display(), and window_opengl_context_enable().
| void window_redraw | ( | ) |
Definition at line 345 of file window.cpp.
References Window::redraw, V, and window_redraw().
Referenced by session_init(), and window_redraw().
|
static |
Definition at line 185 of file window.cpp.
References Window::height, Window::resize, V, Window::width, and window_reshape().
Referenced by window_main_loop(), and window_reshape().
| CCL_NAMESPACE_BEGIN struct Window V |
Referenced by btDeformableLinearElasticityForce::addScaledElasticForce(), btDeformableNeoHookeanForce::addScaledElasticForce(), Freestyle::BezierII(), blender::BKE_ocean_is_valid(), blender::BLI_ewa_filter(), bsdf_aniso_lambda(), bxdf_diffuse_light(), bxdf_ggx_context_amend_transmission(), bxdf_ggx_dominant_direction_reflection(), bxdf_ggx_dominant_direction_transmission(), bxdf_ggx_eval_reflection(), bxdf_ggx_eval_refraction(), bxdf_ggx_light_reflection(), bxdf_ggx_light_thin_glass_transmission(), bxdf_ggx_light_transmission(), bxdf_ggx_lightprobe_reflection(), bxdf_ggx_lightprobe_thin_glass_transmission(), bxdf_ggx_lightprobe_transmission(), bxdf_ggx_ray_amend_transmission(), bxdf_lightprobe_ray(), bxdf_translucent_light(), camera_sample_panorama(), closure_evaluate_pdf(), closure_light_new(), closure_light_new(), closure_light_new_ex(), closure_to_rgba_forward(), closure_to_rgba_hybrid(), 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(), eevee::LightprobeRenderData::eval(), eevee::surfel::eval_light(), eevee::ltc::evaluate_quad(), draw::pointcloud::facing_matrix(), blender::filter(), eevee::forward_lighting_eval(), workbench::resolve::frag(), eevee::lightprobe::planar::display::frag_main(), eevee::lightprobe::sphere::display::frag_main(), eevee::raytracing::generate_rays(), eevee::geom_curves(), blender::workbench::get_world_shading_rotation_matrix(), btSoftBody::getRigidTransform(), getSkewSymmetricMatrix(), slim::grad(), KDL::Rall1d< double >::Gradient(), eevee::LTCData::identity(), eevee::init_globals_curves(), jacobi_svd_3x3(), eevee::deferred::light_eval_frag(), eevee::LightprobeRenderData::load(), slim::local_basis(), makeLambdaShape(), makeUpperBidiag(), blender::mat3_polar_decompose(), matrix_svd(), node_bsdf_glass(), node_bsdf_glossy(), node_bsdf_metallic(), node_bsdf_principled(), node_eevee_specular(), node_fresnel(), node_layer_weight(), node_light_evaluation_impl(), openpbr_eval_coat(), openpbr_eval_fuzz(), KDL::Rotation::operator*(), eevee::LTCData::pack_identity(), eevee::LTCData::pack_ltc_lut(), eevee::lightprobe::plane::parallax(), eevee::deferred::planar_eval_frag(), blender::math::polar_decompose(), slim::polar_svd(), Freestyle::FEdgeXDetector::preProcessFace(), blender::io::serialize::PrimitiveValue< int64_t, eValueType::Int >::PrimitiveValue(), process(), Freestyle::FEdgeXDetector::ProcessSilhouetteFace(), draw::gsplat::project_gaussian(), eevee::fast_gi::projected_normal_to_plane_angle_and_length(), blender::math::pseudo_invert(), blender::pseudoinverse_m4_m4(), KDL::Rall2d< double, double, double >::Rall2d(), KDL::Rall2d< double, double, double >::Rall2d(), eevee::ray_generate_direction(), ray_triangle_intersect(), ray_triangle_intersect_self(), ray_triangle_uv(), raytrace_thickness_ray_amend(), eevee::fast_gi::resolve(), eevee::CameraVelocity::resolve_local(), eevee::CameraVelocity::resolve_panoramic(), eevee::LTCData::sample_ltc_lut(), eevee::LightprobeVolumeRenderData::sample_probe(), eevee::volume::scatter_main(), CCL_NAMESPACE_BEGIN::ShaderNodeBuilder< T >::set(), CCL_NAMESPACE_BEGIN::ShaderNodeBuilder< T >::set_param(), shadow_ray_smooth_surface_offset(), eevee::shadow::usage::TagUsage::shadow_tag_usage_tilemap_directional(), eevee::light::shape_display_frag(), draw::Curves::shape_point_get(), draw::pointcloud::shape_point_get(), singularValueDecomposition(), singularValueDecomposition(), singularValueDecomposition(), slim::slim_precompute(), sort(), eevee::raytracing::denoise::spatial_main(), Freestyle::OGF::sphere_clip_vector(), eevee::deferred::sphere_eval_frag(), slim::squared_edge_lengths(), KDL::svd_eigen_HH(), blender::svd_m4(), Freestyle::StrokeTesselator::Tesselate(), eevee::raytrace::fallback::trace(), eevee::raytrace::planar::trace(), eevee::raytrace::screen::trace(), blender::math::transform_point(), eevee::raytracing::denoise::transmission_thickness_amend_closure(), triangle_light_pdf(), triangle_light_sample(), triangle_light_uv(), triangle_world_space_vertices(), triple(), overlay::armature::sphere::outline::vert(), overlay::armature::sphere::solid::vert(), eevee::volume::Scatter::volume_lightprobe_eval(), volume_phase_function(), volume_phase_function_as_sh_L1(), 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().