Re: Template classes

2009-04-14 Thread bearophile
Andrew Spott: > yes, however there are going to be a few new classes that will be implemented > in this (dot products, cross products, etc) You mean a few new methods. Take a look at the 'this' of D2, it allows to create wrapper structs, so you can just add methods to the built-in arrays. Bye,

Re: Template classes

2009-04-14 Thread Andrew Spott
yes, however there are going to be a few new classes that will be implemented in this (dot products, cross products, etc) Thanks for the help. -Andrew Steven Schveighoffer Wrote: > On Tue, 14 Apr 2009 17:33:29 -0400, Steven Schveighoffer > wrote: > > > e.g., the following code does almost

Re: Template classes

2009-04-14 Thread Steven Schveighoffer
On Tue, 14 Apr 2009 17:33:29 -0400, Steven Schveighoffer wrote: e.g., the following code does almost the same thing you are doing without requiring a new class: correction, the code does *exactly* the same thing you are doing. -Steve

Re: Template classes

2009-04-14 Thread Steven Schveighoffer
On Tue, 14 Apr 2009 17:01:28 -0400, Andrew Spott wrote: So, the attached is supposed to be a class that creates a vector of any type (I would like it to only take numerical values (int, float, real, double, etc), however, I am ok with it taking others (not that I see why someone would us

Re: Template classes

2009-04-14 Thread Denis Koroskin
On Wed, 15 Apr 2009 01:01:28 +0400, Andrew Spott wrote: So, the attached is supposed to be a class that creates a vector of any type (I would like it to only take numerical values (int, float, real, double, etc), however, I am ok with it taking others (not that I see why someone would use

Template classes

2009-04-14 Thread Andrew Spott
So, the attached is supposed to be a class that creates a vector of any type (I would like it to only take numerical values (int, float, real, double, etc), however, I am ok with it taking others (not that I see why someone would use it that way). I tried to compile it with the following, but i

Re: Open GL extensions?

2009-04-14 Thread Spacen Jasset
AxelS wrote: Hello evrybody... I want to use all the opengl extensions like Shaders in my D2.0 prog... I already got the opengl32.lib and also the headers... I tried it wglGetProc (similar name...)! I could compile it but it hangs up runtime and creates errors which dont tell me the actual pro

Re: Open GL extensions, dglut style

2009-04-14 Thread AxelS
Thank you very much! I hope that will work...

Open GL extensions, dglut style

2009-04-14 Thread downs
AxelS wrote: > Hello evrybody... > > I want to use all the opengl extensions like Shaders in my D2.0 prog... > I already got the opengl32.lib and also the headers... > > I tried it wglGetProc (similar name...)! I could compile it but it hangs up > runtime and creates errors which dont tell me th

Re: Open GL extensions?

2009-04-14 Thread Jarrett Billingsley
On Tue, Apr 14, 2009 at 6:20 AM, AxelS wrote: > Hello evrybody... > > I want to use all the opengl extensions like Shaders in my D2.0 prog... > I already got the opengl32.lib and also the headers... > > I tried it wglGetProc (similar name...)! I could compile it but it hangs up > runtime and crea

Open GL extensions?

2009-04-14 Thread AxelS
Hello evrybody... I want to use all the opengl extensions like Shaders in my D2.0 prog... I already got the opengl32.lib and also the headers... I tried it wglGetProc (similar name...)! I could compile it but it hangs up runtime and creates errors which dont tell me the actual problem... and yes