Visualization Library 2.1.0

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Namespaces | Macros | Functions
checks.hpp File Reference
#include <vlCore/link_config.hpp>

Go to the source code of this file.

Namespaces

 vl
 Visualization Library main namespace.
 

Macros

#define VL_COMPILE_TIME_CHECK(expr)   typedef char compile_time_assert[ (expr) ? 1 : -1 ];
 
#define VL_TRAP()   { ::vl::abort_vl(); }
 
#define VL_CHECK(expr)   { if(!(expr)) { ::vl::log_failed_check(#expr,__FILE__,__LINE__); VL_TRAP() } }
 
#define VL_WARN(expr)   { if(!(expr)) { ::vl::log_failed_check(#expr,__FILE__,__LINE__); } }
 

Functions

VLCORE_EXPORT void vl::log_failed_check (const char *, const char *, int)
 
VLCORE_EXPORT void vl::abort_vl ()
 

Macro Definition Documentation

◆ VL_CHECK

#define VL_CHECK (   expr)    { if(!(expr)) { ::vl::log_failed_check(#expr,__FILE__,__LINE__); VL_TRAP() } }

Definition at line 73 of file checks.hpp.

Referenced by vl::ShaderNode::addChild(), vl::Transform::addChild(), vl::Transform::addChildren(), vl::FramebufferObject::addColorAttachment(), vl::FramebufferObject::addDepthAttachment(), vl::FramebufferObject::addDepthStencilAttachment(), vl::EdgeExtractor::addEdge(), vl::Applet::addedListenerEvent(), vl::OpenGLContext::addEventListener(), vl::FramebufferObject::addStencilAttachment(), vl::FramebufferObject::addTextureAttachment(), vl::TrackballManipulator::adjustView(), vl::Camera::adjustView(), vl::Image::allocate1D(), vl::Image::allocate2D(), vl::Image::allocate3D(), vl::PlyLoader::PlyElement::analyze(), vl::PatchParameter::apply(), vl::Light::apply(), vl::ClipPlane::apply(), vl::Color::apply(), vl::TextureMatrix::apply(), vl::TexEnv::apply(), vl::TexGen::apply(), vl::TextureImageUnit::apply(), vl::OpenGLContext::applyRenderStates(), vl::GLSLProgram::applyUniformSet(), vl::assemble3DImage(), vl::Array< bvec2, GLbyte, 2, GL_BYTE >::at(), vl::GLSLProgram::attachShader(), vl::FBORenderbufferAttachment::bindAttachment(), vl::FBOTexture1DAttachment::bindAttachment(), vl::FBOTexture2DAttachment::bindAttachment(), vl::FBOTextureAttachment::bindAttachment(), vl::FBOTexture3DAttachment::bindAttachment(), vl::FBOTextureLayerAttachment::bindAttachment(), vl::GLSLProgram::bindAttribLocation(), vl::FramebufferObject::bindDrawBuffers(), vl::FramebufferObject::bindFramebuffer(), vl::DaeLoader::bindMaterials(), vl::OpenGLContext::bindVAS_Attribs(), vl::Text::boundingRect(), vl::CoreText::boundingRect(), vl::Text::boundingRectTransformed(), vl::PolygonSimplifier::Vertex::checkConnectivity(), vl::FramebufferObject::checkFramebufferStatus(), vl::PolygonSimplifier::Triangle::checkTriangle(), vl::ActorKdTree::childP(), vl::Array< bvec2, GLbyte, 2, GL_BYTE >::clone(), vl::PolygonSimplifier::collapse(), vl::GLSLShader::compile(), vl::GLSLShader::compileStatus(), vl::compress(), vl::PolygonSimplifier::Vertex::computeAdjacentVertices(), vl::PolygonSimplifier::Triangle::computeArea(), vl::MultiDrawElements< ArrayUShort1 >::computeBufferObjectPointerVector(), vl::PolygonSimplifier::computeCollapseInfo(), vl::MarchingCubes::computeEdges(), vl::Geometry::computeNormals(), vl::CatmullRomInterpolator< T >::computePoint(), vl::MultiDrawElements< ArrayUShort1 >::computePointerVector(), vl::Geometry::computeTangentSpace(), vl::TrackballManipulator::computeVector(), vl::CopyTexSubImage1D::copyPixels(), vl::CopyTexSubImage2D::copyPixels(), vl::CopyTexSubImage3D::copyPixels(), vl::Image::copySubImage(), vl::BufferObject::createBufferObject(), vl::FramebufferObject::createFBO(), vl::Actor::createOcclusionQuery(), vl::GLSLProgram::createProgram(), vl::FBORenderbufferAttachment::createRenderBuffer(), vl::GLSLShader::createShader(), vl::Texture::createTexture(), vl::Volume::cube(), vl::Time::currentTime(), vl::decompress(), vl::Object::decReference(), vl::BufferObject::deleteBufferObject(), vl::FramebufferObject::deleteFBO(), vl::GLSLProgram::deleteProgram(), vl::FBORenderbufferAttachment::deleteRenderBuffer(), vl::GLSLShader::deleteShader(), vl::GLSLProgram::detachShader(), vl::GLSLProgram::discardAllShaders(), vl::Uniform::doubleCount(), vl::Uniform::doubleData(), vl::BufferObject::downloadBufferObject(), vl::VectorGraphics::drawActor(), vl::Matrix2< T_Scalar >::e(), vl::Matrix3< T_Scalar >::e(), vl::Matrix4< float >::e(), vl::NaryQuickMap< EEnable, EEnable, EN_EnableCount >::erase(), vl::OpenGLContext::eraseAllEventListeners(), vl::ShaderNode::eraseChild(), vl::Transform::eraseChild(), vl::ShaderNode::eraseChildren(), vl::Transform::eraseChildren(), vl::ShaderNode::eraseRenderState(), vl::Effect::evaluateLOD(), vlX::VLXSerializer::exportVLX(), vlX::VLXClassWrapper_Geometry::exportVLX(), vlX::VLXClassWrapper_DrawCall::exportVLX(), vlX::VLXClassWrapper_PatchParameter::exportVLX(), vlX::VLXClassWrapper_ResourceDatabase::exportVLX(), vlX::VLXClassWrapper_Uniform::exportVLX(), vlX::VLXClassWrapper_Shader::exportVLX(), vlX::VLXClassWrapper_LODEvaluator::exportVLX(), vlX::VLXClassWrapper_Effect::exportVLX(), vlX::VLXClassWrapper_Actor::exportVLX(), vlX::VLXClassWrapper_Camera::exportVLX(), vlX::VLXClassWrapper_Viewport::exportVLX(), vlX::VLXClassWrapper_Transform::exportVLX(), vlX::VLXClassWrapper_Light::exportVLX(), vlX::VLXClassWrapper_ClipPlane::exportVLX(), vlX::VLXClassWrapper_GLSLProgram::exportVLX(), vlX::VLXClassWrapper_GLSLShader::exportVLX(), vlX::VLXClassWrapper_VertexAttrib::exportVLX(), vlX::VLXClassWrapper_Color::exportVLX(), vlX::VLXClassWrapper_SecondaryColor::exportVLX(), vlX::VLXClassWrapper_Normal::exportVLX(), vlX::VLXClassWrapper_Material::exportVLX(), vlX::VLXClassWrapper_ActorEventCallback::exportVLX(), vlX::VLXClassWrapper_Texture::exportVLX(), vlX::VLXClassWrapper_TexParameter::exportVLX(), vlX::VLXClassWrapper_TextureImageUnit::exportVLX(), vl::ZippedFile::extract(), vl::AdjacencyExtractor::extract(), vl::Rendering::fillRenderQueue(), vl::UUID::fillString(), vl::GZipCodec::fillUncompressedBuffer(), vl::ZippedFile::fillUncompressedBuffer(), vl::NaryQuickMap< EEnable, EEnable, EN_EnableCount >::find(), vl::Geometry::fixTriangleWinding(), vl::Image::flipVertically(), vl::Uniform::floatData(), vl::DaeLoader::generateGeometry(), vl::DrawPixels::Pixels::generatePixelBufferObject(), vl::genRGBAVolume(), vlX::VLXValue::getArrayInteger(), vlX::VLXValue::getArrayReal(), vl::GLSLProgram::getAttribLocation(), vlX::VLXValue::getBool(), vlX::VLXSerializer::getExportedObject(), vlX::VLXValue::getID(), vlX::VLXValue::getIdentifier(), vlX::VLXSerializer::getImportedStructure(), vlX::VLXValue::getInteger(), vl::Matrix4< float >::getInverse(), vlX::VLXValue::getList(), vl::GLSLProgram::getProgramBinary(), vlX::VLXValue::getRawtextBlock(), vlX::VLXValue::getReal(), vl::Quaternion< T_Scalar >::getSlerp(), vl::DaeLoader::getSource(), vlX::VLXValue::getString(), vlX::VLXValue::getStructure(), vl::Uniform::getUniform(), vl::Uniform::getUniformD(), vl::Uniform::getUniformF(), vl::GLSLProgram::getUniformfv(), vl::Uniform::getUniformI(), vl::GLSLProgram::getUniformiv(), vl::GLSLProgram::getUniformLocation(), vl::Uniform::getUniformU(), vlGLUT::GLUTWindow::glut_close_func(), vlGLUT::GLUTWindow::glut_display_func(), vlGLUT::GLUTWindow::glut_keyboard_func(), vlGLUT::GLUTWindow::glut_keyboard_up_func(), vlGLUT::GLUTWindow::glut_motion_func(), vlGLUT::GLUTWindow::glut_mouse_func(), vlGLUT::GLUTWindow::glut_mouse_wheel_func(), vlGLUT::GLUTWindow::glut_passive_motion_func(), vlGLUT::GLUTWindow::glut_reshape_func(), vlGLUT::GLUTWindow::glut_special_func(), vlGLUT::GLUTWindow::glut_special_up_func(), vlGLUT::GLUTWindow::glut_visibility_func(), vl::ActorKdTree::harvestNonLeafActors(), vlX::import_AABB(), vlX::import_Sphere(), vlX::VLXClassWrapper_DrawCall::importDrawCall(), vlX::VLXClassWrapper_Uniform::importUniform(), vlX::VLXSerializer::importVLX(), vl::GLSLShader::infoLog(), vl::GLSLProgram::infoLog(), vl::Terrain::init(), vl::TriangleIteratorIndexed< TArray >::initialize(), vl::IndexIteratorElements< TArray >::initialize(), vl::TriangleIteratorDirect::initialize(), vl::TriangleIteratorMulti< TArray >::initialize(), vlSDL::SDLWindow::initSDLWindow(), vl::FBORenderbufferAttachment::initStorage(), vlWin32::Win32Context::initWin32GLContext(), vl::NaryQuickMap< EEnable, EEnable, EN_EnableCount >::insert(), vl::ActorKdTree::insertActor(), vl::Uniform::intData(), vl::VisualizationLibrary::isCoreInitialized(), vlX::VisitorLinker::link(), vl::GLSLProgram::linkProgram(), vl::GLSLProgram::linkStatus(), vl::QtDirectory::listFiles(), vl::DiskDirectory::listFilesRecursive_internal(), vl::QtDirectory::listFilesRecursive_internal(), vl::MemoryDirectory::listSubDirs(), vl::ZippedDirectory::listSubDirs(), vl::load3DS(), vl::loadAC3D(), vl::loadBMP(), vl::loadDDS(), vl::loadImage(), vl::loadJPG(), vl::loadMD2(), vl::ObjLoader::loadOBJ(), vl::loadPNG(), vl::loadTGA(), vl::makeGrid(), vl::makeIcosphere(), vl::makeNonUniformColorSpectrum(), vl::makeTeapot(), vl::BufferObject::mapBufferObject(), vl::MemoryDirectory::memorySubDir(), vl::Geometry::mergeDrawCallsWithMultiDrawElements(), vl::Geometry::mergeDrawCallsWithPrimitiveRestart(), vl::Geometry::mergeDrawCallsWithTriangles(), vl::FlatManipulator::mouseDownEvent(), vl::TrackballManipulator::mouseDownEvent(), vl::GhostCameraManipulator::mouseMoveEvent(), vl::FlatManipulator::mouseMoveEvent(), vl::TrackballManipulator::mouseMoveEvent(), vl::Matrix2< T_Scalar >::multiply(), vl::Matrix3< T_Scalar >::multiply(), vl::Matrix4< float >::multiply(), vl::PlyLoader::newElement(), vl::IndexIteratorElements< TArray >::next(), vl::SlicedVolume::onActorRenderStarted(), vl::MorphingCallback::onActorRenderStarted(), vlWX::WXGLCanvas::OnMouseDown(), vlWX::WXGLCanvas::OnMouseUp(), vl::ref< vl::Dae::Mesh >::operator*(), vl::ref< vl::Dae::Mesh >::operator->(), vl::Buffer::operator=(), vl::PolygonSimplifier::outputSimplifiedGeometry(), vlX::ParserVLT::parse(), vl::DaeLoader::parseColor(), vl::DaeLoader::parseGeometry(), vl::DaeLoader::parseInputs(), vl::DaeLoader::parseNode(), vl::Image::pixelsXN(), vl::Image::pixelsXP(), vl::Image::pixelsYN(), vl::Image::pixelsYP(), vl::Image::pixelsZN(), vl::Image::pixelsZP(), vl::Image::pixelsZSlice(), vl::Frustum::plane(), vl::Image::printFormat(), vl::Image::printType(), vl::GLSLProgram::programBinary(), vl::PolygonSimplifier::QErr::QErr(), vl::GZipCodec::read_Implementation(), vl::ZippedFile::read_Implementation(), vl::Dae::Source::readData(), vl::readPixels(), vlX::ParserVLB::readString(), vlX::ParserVLB::readValue(), vl::ActorKdTree::rebuildKdTree(), vlX::VLXSerializer::registerExportedObject(), vlX::VLXSerializer::registerImportedStructure(), vl::PolygonSimplifier::Vertex::removeAdjacentVertex(), vl::FramebufferObject::removeAllAttachments(), vl::FramebufferObject::removeAttachment(), vl::DoubleVertexRemover::removeDoubles(), vl::OpenGLContext::removeEventListener(), vl::Renderer::render(), vl::EdgeRenderer::render(), vl::Renderable::render(), vl::Rendering::render(), vl::MultiDrawElements< ArrayUShort1 >::render(), vl::DrawElements< ArrayUShort1 >::render(), vl::DrawRangeElements< ArrayUShort1 >::render(), vl::Text::render_Implementation(), vl::DrawPixels::render_Implementation(), vl::CoreText::render_Implementation(), vl::OcclusionCullRenderer::render_pass1(), vl::OcclusionCullRenderer::render_pass2(), vl::Renderer::renderRaw(), vl::EdgeRenderer::renderSolids(), vl::Text::renderText(), vl::CoreText::renderText(), vl::PolygonSimplifier::Triangle::replaceVertex(), vl::Image::requiredMemory(), vl::BezierPatch::resize(), vl::Buffer::resize(), vl::Applet::resizeEvent(), vl::Image::sample(), vl::Image::sampleLinear(), vl::savePNG(), vlX::saveVLB(), vlX::saveVLT(), vl::Effect::setActiveLod(), vlX::VLXValue::setArrayInteger(), vlX::VLXValue::setArrayReal(), vl::BufferObject::setBufferData(), vl::BufferObject::setBufferSubData(), vl::Transform::setChild(), vl::Geometry::setColorArray(), vl::Geometry::setFogCoordArray(), vlX::VLXValue::setList(), vl::Effect::setLOD(), vl::Actor::setLODs(), vl::Texture::setMipLevel(), vl::Geometry::setNormalArray(), vl::Frustum::setPlane(), vlX::VLXValue::setRawtextBlock(), vl::Geometry::setSecondaryColorArray(), vl::GLSLShader::setSource(), vl::Geometry::setTexCoordArray(), vl::OpenGLContext::setTexUnitBinding(), vl::UniformSet::setUniform(), vl::Shader::setUniform(), vl::Volume::setup(), vl::DaeLoader::setup_vl_Effect(), vl::CatmullRomInterpolator< T >::setupEndPoints(), vl::Geometry::setVertexArray(), vl::Geometry::shrinkDrawCalls(), vl::PolygonSimplifier::simplify(), vl::RenderQueue::sort(), vl::Image::subImage(), vl::Texture::supports(), vl::OpenGLContext::texUnitBinding(), vl::Quaternion< T_Scalar >::toAxisAngle(), vl::TrackballManipulator::trackballRotation(), vl::Geometry::triangulateDrawCalls(), vl::Uniform::uintData(), vl::BufferObject::unmapBufferObject(), vl::RaycastVolume::updateUniforms(), vl::OpenGLContext::useGLSLProgram(), vl::GLSLProgram::validateProgram(), vl::NaryQuickMap< EEnable, EEnable, EN_EnableCount >::valueFromKey(), vl::OpenGLContext::vertexAttribValue(), vlX::VisitorExportToVLB::visitArray(), vlX::VisitorExportToVLT::visitArray(), vl::SceneManagerPortals::visitSector(), vlX::VisitorExportToVLT::visitValue(), vlX::vlx_ivec4(), vlX::vlx_uivec4(), vlX::vlx_vec2(), vlX::vlx_vec3(), vlX::vlx_vec4(), vl::ZippedDirectory::zippedSubDir(), and vl::FBOAbstractAttachment::~FBOAbstractAttachment().

◆ VL_COMPILE_TIME_CHECK

#define VL_COMPILE_TIME_CHECK (   expr)    typedef char compile_time_assert[ (expr) ? 1 : -1 ];

Definition at line 59 of file checks.hpp.

◆ VL_TRAP

#define VL_TRAP ( )    { ::vl::abort_vl(); }

◆ VL_WARN

#define VL_WARN (   expr)    { if(!(expr)) { ::vl::log_failed_check(#expr,__FILE__,__LINE__); } }

Definition at line 74 of file checks.hpp.