Wow, thankyou WP for the conversion of the fractal tree source code to Lazarus. Much appreciated.
"My knowledge of GL was like walking in a very dark room and stumbling everywhere"
"initially I did not see the tree, and I wonder why this works in Delphi"
I used Delphi Community version 11.3 but that program went into a console type mode and it was also going into a different graphics resolution (but I did see the tree).
The 2 textures are attached below.
I tried activating the texture bmp files but I got this error message
The way I understood you was to comment out the //{$IFDEF TEXTURES} and replace the
FLeaf_Tex and FStem_Tex by their filenames 'leaf.bmp' and 'stem.bmp'
Maybe I misunderstood?
Incompatible types: got "Constant String" expected "LongWord"
glEnable(GL_TEXTURE_2D);
//{$IFDEF TEXTURES}
glBindTexture(GL_TEXTURE_2D, 'stem.bmp');
//{$ENDIF}
glRotatef(-90, 1, 0, 0);
gluQuadricTexture(FCylQuad, GL_TRUE);
gluCylinder(FCylQuad, 0.1, 0.02, 1.5, 3, 1 );
glPopMatrix();