Recent

Author Topic: Most primitive way for doing graphics on Lazarus  (Read 1817 times)

pascal111

  • Sr. Member
  • ****
  • Posts: 423
  • Un trabajo en equipo para programas serias.
Most primitive way for doing graphics on Lazarus
« on: April 20, 2021, 08:41:54 pm »
I'm a beginner in Lazarus, and I'm asking about the most primitive way of making graphics on Lazarus without needing for downloading additional packages if the Lazarus has standard classic way for that. (I don't think that I have OpenGl card)
La chose par la chose est rappelé.

dseligo

  • Hero Member
  • *****
  • Posts: 1194
Re: Most primitive way for doing graphics on Lazarus
« Reply #1 on: April 20, 2021, 10:36:34 pm »
Look at this thread, in answer #3 you can download example project: https://forum.lazarus.freepascal.org/index.php/topic,54249.msg402876.html#msg402876

Roland57

  • Sr. Member
  • ****
  • Posts: 419
    • msegui.net
Re: Most primitive way for doing graphics on Lazarus
« Reply #2 on: April 20, 2021, 11:36:29 pm »
Maybe you could use the ptcGraph unit.
My projects are on Gitlab and on Codeberg.

speter

  • Sr. Member
  • ****
  • Posts: 345
Re: Most primitive way for doing graphics on Lazarus
« Reply #3 on: April 21, 2021, 02:19:40 am »
The simplest way to do graphics in lazaraus is to use the canvas object - either a form's canvas or place a paintbox component on the form and use it's canvas.

Have a look at the wiki page "developing with graphics" https://wiki.freepascal.org/Developing_with_Graphics.
There is also a useful forum thread at https://forum.lazarus.freepascal.org/index.php/topic,42439.msg296299.html#msg296299

cheers
S.
I climbed mighty mountains, and saw that they were actually tiny foothills. :)

pascal111

  • Sr. Member
  • ****
  • Posts: 423
  • Un trabajo en equipo para programas serias.
Re: Most primitive way for doing graphics on Lazarus
« Reply #4 on: April 21, 2021, 03:34:30 am »
Thanks everyone!
La chose par la chose est rappelé.

Handoko

  • Hero Member
  • *****
  • Posts: 5129
  • My goal: build my own game engine using Lazarus
Re: Most primitive way for doing graphics on Lazarus
« Reply #5 on: April 21, 2021, 08:31:11 am »
I don't think that I have OpenGl card

... 810-based boards include an AMR expansion slot. Additionally, the integrated graphics does not support 32-bit graphics mode, forcing the user to downsample the 810's standard 24-bit mode to 16-bit in order to run most games or full screen DirectX/OpenGL programs ...
Source: https://en.wikipedia.org/wiki/Intel_810

Intel 810 Chipset, which was an integrated VGA chipset released by Intel in 1999 already has some basic supports of OpenGL. Any computer with integrated VGA manufactured after 2000 (Pentium 4 and above) should already support OpenGL version 1.2.
https://en.wikipedia.org/wiki/OpenGL#Version_history

So I believe your computer should be able to run OpenGL 1.2 programs unless it is a Pentium 3 or lower. You can download and run glSlideshow to test your computer, it requires OpenGL 1.2 support.
https://forum.lazarus.freepascal.org/index.php/topic,35313.msg256719.html#msg256719

 

TinyPortal © 2005-2018