Re: [fpc-pascal] GLext in Free Pascal does not work?

2008-02-20 Thread Michalis Kamburelis
Jakub Marian wrote: Well, glext_LoadExtension('GL_version_1_4') was just an example, of course that I tried Load_GL_version_2_0 and some other functions. But I get "access violation" when I try to call ANY function from glext. I would understand it if I got just false as a return value of a func

Re: [fpc-pascal] GLext in Free Pascal does not work?

2008-02-20 Thread Jakub Marian
Well, glext_LoadExtension('GL_version_1_4') was just an example, of course that I tried Load_GL_version_2_0 and some other functions. But I get "access violation" when I try to call ANY function from glext. I would understand it if I got just false as a return value of a function... But the progr

Re: [fpc-pascal] GLext in Free Pascal does not work?

2008-02-20 Thread Michalis Kamburelis
Jakub Marian wrote: Hello, I've been trying to solve the problem with the unit GLext for some time and I am getting mad. I need to use vertex shaders written in GLSL, but I am a novice in that field so I may be doing domething wrong. I have glext in my "uses". I tried just to call glCreateProgram

[fpc-pascal] GLext in Free Pascal does not work?

2008-02-20 Thread Jakub Marian
Hello, I've been trying to solve the problem with the unit GLext for some time and I am getting mad. I need to use vertex shaders written in GLSL, but I am a novice in that field so I may be doing domething wrong. I have glext in my "uses". I tried just to call glCreateProgramObjectARB but I've go

Re: [fpc-pascal] Save image into BMP or JPEG using Free Pascal (Save screenshot of OpenGL scene)

2008-02-20 Thread Michalis Kamburelis
Marco van de Voort wrote: Jakub Marian wrote: The image format in the memory is clearly specified, as the main use of this unit is to cooperate with OpenGL (for loading images, textures, saving screenshots etc.). See TImage class comments, basically RawPixels is simply a pointer to an array o

Re: [fpc-pascal] Empty record inside another record ?

2008-02-20 Thread Florian Klaempfl
> The context in which the words are used determines their meaning. And that's exactly the problem: good code is understandable with as little as possible context. Any context depending behaviour/meaning makes code less readable and less maintainable. __

Re: [fpc-pascal] Empty record inside another record ?

2008-02-20 Thread Marco van de Voort
> In every language I know, words can have multiple meanings. Natural languages yes. But they need a billion neurons that is trained for 20 years to interpret, not a simple automaton. IOW, lots of computer languages don't. > One possible reason could be because there is so much to describe that

[fpc-pascal] Dependency on other tools ? (Spaces in path issue ?)

2008-02-20 Thread Skybuck Flying
Hello, I have come to the point where I want to add files to the search/unit path. I have spaces in my folders and the compiler fails to find the files. This raises some questions: 1. How independant is free pascal compiler ? What other tools does it depend on ? 2. What exactly happens when

Re: [fpc-pascal] Empty record inside another record ?

2008-02-20 Thread Skybuck Flying
In every language I know, words can have multiple meanings. The context in which the words are used determines their meaning. One possible reason could be because there is so much to describe that coming up with unique words might be impossible or inpractical. Bye, Skybuck. Skybuck Flying

Re: [fpc-pascal] Save image into BMP or JPEG using Free Pascal (Save screenshot of OpenGL scene)

2008-02-20 Thread Marco van de Voort
> Jakub Marian wrote: > > The image format in the memory is clearly specified, as the main use of > this unit is to cooperate with OpenGL (for loading images, textures, > saving screenshots etc.). See TImage class comments, basically RawPixels > is simply a pointer to an array of Width * Height