Visualization Library v1.0.3

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

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Namespaces | Defines | Functions

/home/master/UCL/VisualizationLibrary/src/vlCore/checks.hpp File Reference

#include <vlCore/link_config.hpp>

Go to the source code of this file.

Namespaces

namespace  vl
 

Visualization Library namespace.


Defines

#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 ()

Define Documentation

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

Definition at line 59 of file checks.hpp.

#define VL_TRAP (  )    { ::vl::abort_vl(); }
#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::TextureSampler::apply(), vl::TextureMatrix::apply(), vl::TexGen::apply(), vl::TexEnv::apply(), vl::PatchParameter::apply(), vl::Light::apply(), vl::ClipPlane::apply(), vl::OpenGLContext::applyRenderStates(), vl::GLSLProgram::applyUniformSet(), vl::assemble3DImage(), vl::Array< bvec2, GLbyte, 2, GL_BYTE >::at(), vl::GLSLProgram::attachShader(), vl::FBORenderbufferAttachment::bindAttachment(), vl::FBOTextureLayerAttachment::bindAttachment(), vl::FBOTexture3DAttachment::bindAttachment(), vl::FBOTextureAttachment::bindAttachment(), vl::FBOTexture2DAttachment::bindAttachment(), vl::FBOTexture1DAttachment::bindAttachment(), vl::GLSLProgram::bindAttribLocation(), vl::Framebuffer::bindDrawBuffers(), vl::FramebufferObject::bindFramebuffer(), vl::DaeLoader::bindMaterials(), vl::OpenGLContext::bindVAS(), vl::Text::boundingRect(), vl::CoreText::boundingRect(), vl::Text::boundingRectTransformed(), vl::PolygonSimplifier::Vertex::checkConnectivity(), vl::FramebufferObject::checkFramebufferStatus(), vl::PolygonSimplifier::Triangle::checkTriangle(), 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::CopyTexSubImage3D::copyPixels(), vl::CopyTexSubImage2D::copyPixels(), vl::CopyTexSubImage1D::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::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(), vl::VLXClassWrapper_TextureSampler::exportVLX(), vl::VLXClassWrapper_TexParameter::exportVLX(), vl::VLXClassWrapper_Texture::exportVLX(), vl::VLXClassWrapper_ActorEventCallback::exportVLX(), vl::VLXClassWrapper_Material::exportVLX(), vl::VLXClassWrapper_Normal::exportVLX(), vl::VLXClassWrapper_SecondaryColor::exportVLX(), vl::VLXClassWrapper_Color::exportVLX(), vl::VLXClassWrapper_VertexAttrib::exportVLX(), vl::VLXClassWrapper_GLSLShader::exportVLX(), vl::VLXClassWrapper_GLSLProgram::exportVLX(), vl::VLXClassWrapper_ClipPlane::exportVLX(), vl::VLXClassWrapper_Light::exportVLX(), vl::VLXClassWrapper_Transform::exportVLX(), vl::VLXClassWrapper_Viewport::exportVLX(), vl::VLXClassWrapper_Camera::exportVLX(), vl::VLXClassWrapper_Actor::exportVLX(), vl::VLXClassWrapper_Effect::exportVLX(), vl::VLXClassWrapper_LODEvaluator::exportVLX(), vl::VLXClassWrapper_Shader::exportVLX(), vl::VLXClassWrapper_Uniform::exportVLX(), vl::VLXClassWrapper_ResourceDatabase::exportVLX(), vl::VLXClassWrapper_PatchParameter::exportVLX(), vl::VLXClassWrapper_DrawCall::exportVLX(), vl::VLXClassWrapper_VertexAttribInfo::exportVLX(), vl::VLXClassWrapper_Geometry::exportVLX(), vl::VLXSerializer::exportVLX(), vl::ZippedFile::extract(), vl::ActorTreeAbstract::extractVisibleActors(), vl::Rendering::fillRenderQueue(), vl::UUID::fillString(), vl::ZippedFile::fillUncompressedBuffer(), vl::GZipCodec::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::genRGBAVolumeT(), vl::VLXValue::getArrayInteger(), vl::VLXValue::getArrayReal(), vl::GLSLProgram::getAttribLocation(), vl::VLXValue::getBool(), vl::VLXSerializer::getExportedObject(), vl::VLXValue::getID(), vl::VLXValue::getIdentifier(), vl::VLXSerializer::getImportedStructure(), vl::VLXValue::getInteger(), vl::Matrix4< T_Scalar >::getInverse(), vl::VLXValue::getList(), vl::GLSLProgram::getProgramBinary(), vl::VLXValue::getRawtextBlock(), vl::VLXValue::getReal(), vl::Quaternion< T_Scalar >::getSlerp(), vl::DaeLoader::getSource(), vl::VLXValue::getString(), vl::VLXValue::getStructure(), vl::Geometry::getTexCoordArrayAt(), vl::Uniform::getUniform(), vl::GLSLProgram::getUniformfv(), vl::GLSLProgram::getUniformiv(), vl::GLSLProgram::getUniformLocation(), 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(), vl::import_AABB(), vl::import_Sphere(), vl::VLXClassWrapper_DrawCall::importDrawCall(), vl::VLXClassWrapper_Uniform::importUniform(), vl::VLXSerializer::importVLX(), vl::GLSLProgram::infoLog(), vl::GLSLShader::infoLog(), vl::Terrain::init(), vl::VisualizationLibrary::initCore(), vl::TriangleIteratorMulti< TArray >::initialize(), vl::TriangleIteratorDirect::initialize(), vl::TriangleIteratorIndexed< TArray >::initialize(), vl::IndexIteratorElements< 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::VLXVisitorLinker::link(), vl::GLSLProgram::linkProgram(), vl::GLSLProgram::linkStatus(), vl::ZippedDirectory::listSubDirs(), vl::MemoryDirectory::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::makeTeapot(), vl::BufferObject::mapBufferObject(), vl::MemoryDirectory::memorySubDir(), vl::Geometry::mergeDrawCallsWithMultiDrawElements(), vl::Geometry::mergeDrawCallsWithPrimitiveRestart(), vl::Geometry::mergeDrawCallsWithTriangles(), vl::TrackballManipulator::mouseDownEvent(), vl::FlatManipulator::mouseDownEvent(), vl::TrackballManipulator::mouseMoveEvent(), vl::GhostCameraManipulator::mouseMoveEvent(), vl::FlatManipulator::mouseMoveEvent(), vl::Matrix4< float >::multiply(), vl::Matrix3< T_Scalar >::multiply(), vl::Matrix2< T_Scalar >::multiply(), vl::PlyLoader::newElement(), vl::IndexIteratorElements< TArray >::next(), vl::SlicedVolume::onActorRenderStarted(), vl::MorphingCallback::onActorRenderStarted(), vlWX::WXGLCanvas::OnMouseDown(), vlWX::WXGLCanvas::OnMouseUp(), vl::ref< ArrayAbstract >::operator*(), vl::ref< ArrayAbstract >::operator->(), vl::Buffer::operator=(), vl::PolygonSimplifier::outputSimplifiedGeometry(), vl::VLXParserVLT::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::ZippedFile::read_Implementation(), vl::GZipCodec::read_Implementation(), vl::Dae::Source::readData(), vl::readPixels(), vl::VLXParserVLB::readString(), vl::VLXParserVLB::readValue(), vl::VLXSerializer::registerExportedObject(), vl::VLXSerializer::registerImportedStructure(), vl::PolygonSimplifier::Vertex::removeAdjacentVertex(), vl::FramebufferObject::removeAllAttachments(), vl::FramebufferObject::removeAttachment(), vl::DoubleVertexRemover::removeDoubles(), vl::OpenGLContext::removeEventListener(), vl::Rendering::render(), vl::Renderer::render(), vl::Renderable::render(), vl::MultiDrawElements< ArrayUShort1 >::render(), vl::EdgeRenderer::render(), vl::DrawRangeElements< ArrayUShort1 >::render(), vl::DrawElements< ArrayUShort1 >::render(), vl::Text::render_Implementation(), vl::DrawPixels::render_Implementation(), vl::CoreText::render_Implementation(), vl::OcclusionCullRenderer::render_pass1(), vl::OcclusionCullRenderer::render_pass2(), 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(), vl::saveVLB(), vl::saveVLT(), vl::Effect::setActiveLod(), vl::VLXValue::setArrayInteger(), vl::VLXValue::setArrayReal(), vl::BufferObject::setBufferData(), vl::BufferObject::setBufferSubData(), vl::Image::setByteAlignment(), vl::Transform::setChild(), vl::Geometry::setColorArray(), vl::Geometry::setFogCoordArray(), vl::VLXValue::setList(), vl::Effect::setLOD(), vl::Actor::setLODs(), vl::Texture::setMipLevel(), vl::Geometry::setNormalArray(), vl::Frustum::setPlane(), vl::VLXValue::setRawtextBlock(), vl::Geometry::setSecondaryColorArray(), vl::Geometry::setTexCoordArray(), vl::OpenGLContext::setTexUnitBinding(), vl::UniformSet::setUniform(), vl::Shader::setUniform(), vl::Uniform::setUniform1d(), vl::Uniform::setUniform1f(), vl::Uniform::setUniform1i(), vl::Uniform::setUniform1ui(), vl::Uniform::setUniform2d(), vl::Uniform::setUniform2f(), vl::Uniform::setUniform2i(), vl::Uniform::setUniform2ui(), vl::Uniform::setUniform3d(), vl::Uniform::setUniform3f(), vl::Uniform::setUniform3i(), vl::Uniform::setUniform3ui(), vl::Uniform::setUniform4d(), vl::Uniform::setUniform4f(), vl::Uniform::setUniform4i(), vl::Uniform::setUniform4ui(), vl::Uniform::setUniformMatrix2d(), vl::Uniform::setUniformMatrix2f(), vl::Uniform::setUniformMatrix2x3d(), vl::Uniform::setUniformMatrix2x3f(), vl::Uniform::setUniformMatrix2x4d(), vl::Uniform::setUniformMatrix2x4f(), vl::Uniform::setUniformMatrix3d(), vl::Uniform::setUniformMatrix3f(), vl::Uniform::setUniformMatrix3x2d(), vl::Uniform::setUniformMatrix3x2f(), vl::Uniform::setUniformMatrix3x4d(), vl::Uniform::setUniformMatrix3x4f(), vl::Uniform::setUniformMatrix4d(), vl::Uniform::setUniformMatrix4f(), vl::Uniform::setUniformMatrix4x2d(), vl::Uniform::setUniformMatrix4x2f(), vl::Uniform::setUniformMatrix4x3d(), vl::Uniform::setUniformMatrix4x3f(), vl::Volume::setup(), vl::DaeLoader::setup_vl_Effect(), vl::CatmullRomInterpolator< T >::setupEndPoints(), vl::Geometry::setVertexArray(), vl::Geometry::setVertexAttribArray(), 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::GLSLProgram::useProgram(), vl::GLSLProgram::validateProgram(), vl::NaryQuickMap< EEnable, EEnable, EN_EnableCount >::valueFromKey(), vl::OpenGLContext::vertexAttribValue(), vl::VLXVisitorExportToVLT::visitArray(), vl::VLXVisitorExportToVLB::visitArray(), vl::SceneManagerPortals::visitSector(), vl::VLXVisitorExportToVLT::visitValue(), vl::vlx_ivec4(), vl::vlx_uivec4(), vl::vlx_vec2(), vl::vlx_vec3(), vl::vlx_vec4(), vl::ZippedDirectory::zippedSubDir(), and vl::FBOAbstractAttachment::~FBOAbstractAttachment().

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

Definition at line 74 of file checks.hpp.


Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:04.
Permission is granted to use this page to write and publish articles regarding Visualization Library.