For various reasons, you cannot create a pthread on an object’s function. There is, however, a few ways to get around that. One of the most flexible ways of doing this is to create a wrapper function to call an object’s method, taking a pointer to the object as an argument. For example, if you [...]
Posts Tagged ‘Software Development’
Calling object functions in C++ with pthreads
Posted: 13th July 2009 by Tim in C++Tags: C, call, class, coding, function, programming, pthreads, Software Development, software engineering
0
Adding images to OpenGL in C
Posted: 7th July 2009 by Tim in OpenGLTags: bmp, C, coding, fig, image, jpeg, jpg, load, OpenGL, raw, Software Development, software engineering, texture, tif
Adding an image to a 2D OpenGL screen may seem like a relatively simple task, but it’s not. OpenGL is a rendering language, and as such has no native support for loading JPEG, GIF, TIF, BMP or any other popular image type. If, like me, you’re looking for a quick and simple way to get [...]
vbo_copy_vertices: Assertion `0′ failed.
Posted: 7th July 2009 by Tim in OpenGLTags: coding, gl, glu, glut, OpenGL, Software Development, vbo
While writing an OpenGL program, I came across the following error: vbo/vbo_exec_draw.c:135: vbo_copy_vertices: Assertion `0′ failed. The problem occured while trying to plot ~1 million points in a graph. Reducing this number to 2000 points fixed the problem. So if you’re encountering this error, try simplifying your display.