gzz-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz] Re: [Gzz-commits] gzz/gfx/libcallgl callgl.cxx callgl.hxx


From: Matti Katila
Subject: [Gzz] Re: [Gzz-commits] gzz/gfx/libcallgl callgl.cxx callgl.hxx
Date: Fri, 13 Sep 2002 20:37:28 +0300 (EEST)

On Fri, 13 Sep 2002, Tuomas Lukka wrote:
>> !     /* vector<string> v = split("  asdf   #  asdffoo fasdf # fadasfd ");
> Actually, why doesn't this method already remove the comments? So for
> the above string, it would return
>       0: asdf

Because of the name 'split'.  Otherwise it would be 
'split_and_remove_comment'.

> and that's it. Comments after lines are good also.

Just use them. Those have been available since 1.9 version already:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libcallgl/callgl.cxx.diff?r1=1.8&r2=1.9&diff_format=h

>    /* vector<string> v = split("  foo   #  bar ");
>     * 0: foo
>     * 1: #
>     * 2: bar
>     */ 
>     vector<string> split(string str) {

Yes the example isn't good but this is just a split.

> Because it would belong nicer to the tokenizer than here.

No definitely not.
 
>> + // XXX
>> + //#define USE_GL_EXTENSION_CALLS
>> + #ifdef USE_GL_EXTENSION_CALLS
>> + 
>> +    } else if (checkfunc(v, "GetProcAddress", 1)) {
>> +      if (ext_check.isCallNameFound(v[1])) {
> Ouch, I think you have misunderstood what I wanted to happen now.
> Because the OpenGL routines *will* have interesting parameters,
> we can't really do this, we have to declare them somewhere.
> I don't want to do this from Java but to simply use glXGetProcAddress
> for all those functions that are not part of core OpenGL v1.1.
> For example, all the _NV methods are like that.

Mmm.. ok, we _need_ to discuss about this.


   -Matti





reply via email to

[Prev in Thread] Current Thread [Next in Thread]