Categories
February 2012 S M T W T F S « Nov 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 Tags
2d algorithm beta better way blog blogging bsp buffer bunnyblogger C++ client constructor data demo destructor enhancement example exception external for glew glsl intermediate mode lightmap loop objects OpenGL packing performance populate rbsptree sdl separator shortening simple snippet string.join structure throw tree unresolved vbo vertex will it happen wysiwygGitHub Projects
Category Archives: Programming
Regex Escapees
Sometimes when one writes regexes, Its hard to know what needs to be escaped and what doesn’t. But I’ve solved that problem while I was writing a program that generated my regexes for me. Now I have a snippet that … Continue reading
OpenGL weirdness
Try this: and render your display list. Then, try this: I don’t know if its my graphics drivers, or graphics card or perhaps just me, but the top code maxed out at 60 fps while the bottom code ran at … Continue reading
Help! GLEW compiles but doesn’t link!
When you compile the glew_static project from glew on Visual Studio and link it with your program, you may get something like this: It’s easy to fix. Just add GLEW_STATIC to the preprocessor definitions and you’re done. This is because … Continue reading
Posted in Programming
Tagged 2010, external, glew, msvc, symbol, unresolved, visual studio
Leave a comment
Why I Prefer Initialization Through Constructors
I always prefer initializing my class through the use of a constructor like this: class Apple { Color color; Taste taste; List<string> countries; public Apple(Color color, Taste taste, List<string> countries) { this.color = color; this.taste = taste; this.countries = countries; … Continue reading
First test post from BunnyBlogger
Several moons ago I have been working on a special blogging client, that is capable of wysiwyg blogging and allows you to take snapshots from movie files and add images and other images to your post. I have only shown … Continue reading
Will the destructor be called?
Here’s a C++ quiz for all of you: somefunc() will be called from a thread. Do you think this destructor will be called?
Idioms
What if Was Would the world be a better place?
That’s Not The Point
Today I read an interesting chapter in Writing Solid Code, and it showed an example where a supposed optimization led to code bloat: To represent the hierarchical window structure, Character Windows used a binary tree in which one branch pointed … Continue reading
Posted in Programming
1 Comment
GWT: Next level of automation
After playing a little with GWT, and attempting to add a map into my little webapp, I’ve found that this is really a very good idea. By applying a language to abstract all the small difficulties of programming a webpage … Continue reading
Posted in Programming
Leave a comment
Attempt to rush an RPG
After reading an article on GameDev about a guy who managed to build an RPG in 40 hours, I decided I’d try my hand at doing an RPG 40 hours too, but in C#. So I started to write the … Continue reading
Posted in Programming
Leave a comment