Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 18 Jun 2007
Offline Last Active Apr 14 2015 06:38 PM

Posts I've Made

In Topic: C++ templates, are they worth it?

09 January 2014 - 06:04 PM

You should not stop learning C++. Go for templates:

  • Templates allow generic programming
  • Templates are the base for many useful C++ idioms (an example of list)
  • Templates allow generic meta-programming
  • Templates are type-safe
  • Templates allow static code inspection (see SFINAE)
  • Templates represent a powerful concept that helps fighting DRY violations and refactor code
  • Templates are evaluated by the compiler not at run-time
  • The use of templates is fun and can lead you to many interesting code design problematic
  • Many high quality code architectures use templates (C++ standard library for instance)
  • ...

In Topic: How to disable texture in glsl

19 June 2007 - 10:01 AM

i think it is the best solution

In Topic: How to disable texture in glsl

18 June 2007 - 09:27 AM

you can't use glEnable glDisable TEXTURE_2D to force a glsl shader
to use or no texture mapping
glEnable glDisable has no effect if the state you want to enable or disable is
conserned by the vertex or fragment stage(like textures, lights, fog ...)
however some other state like DEPTH_TEST is not conserned by the fragment vertex stage (see the gl specs for more informations)
there's many solution for this:
write anothor shader for geometri that doesn't use textures
or use a uniform variable as a boolean(int 0 or 1) to tell the shader
if it's using or not textures

In Topic: skeletal animation

18 June 2007 - 09:06 AM

the link from _neutrin0_ doesn't work

In Topic: skeletal animation

18 June 2007 - 09:04 AM

the links stated above doesn't work