Recent

Author Topic: Beginner graphics  (Read 11133 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 14203
  • Probably until I exterminate Putin.
Re: Beginner graphics
« Reply #15 on: September 25, 2018, 05:36:54 pm »
Always start with this:
Specialize a type, not a var.

correa.elias

  • New Member
  • *
  • Posts: 18
Re: Beginner graphics
« Reply #16 on: September 25, 2018, 06:43:58 pm »
Just adding to Handoko's answer theres PTCpas (http://ptcpas.sourceforge.net/) too.
Its bundled with freepascal/lazarus by default and you can find nice demos in 'examples/ptc' folder inside your compiler installation place. Compile the examples and have fun :).

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: Beginner graphics
« Reply #17 on: September 25, 2018, 07:14:05 pm »
Hello correa.elias,
Welcome to the forum.

Glad to know PTCPas is written in Free Pascal. Hope it will support OpenGL someday. I use Linux and DirectX isn't supported.

I wonder why I can't find PTC in the example folder of my Lazarus installation. Maybe because I use Linux?

correa.elias

  • New Member
  • *
  • Posts: 18
Re: Beginner graphics
« Reply #18 on: September 25, 2018, 07:28:38 pm »
Thanks Handoko!
I have good news for you: it already supports opengl (theres 2 examples using opengl in ptc).
Take a look at FPC compiler installation folder (not Lazarus). Here in my windows computer its located at 'C:\FPC\3.0.2\examples\ptc\'.

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: Beginner graphics
« Reply #19 on: September 25, 2018, 07:29:58 pm »
I wonder why I can't find PTC in the example folder of my Lazarus installation. Maybe because I use Linux?

In mine they are at /usr/share/doc/fpc-3.0.4/ptc/examples/
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

 

TinyPortal © 2005-2018