Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
(Moderator:
Ask
) »
OpenGL Koch Curve: Fixed and Rendering Well
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Why MaxDouble does not eq...
by
marcov
[
Today
at 05:46:55 pm]
Time Format
by
pjtuloup
[
Today
at 05:45:15 pm]
Breakpoint in a procedure...
by
Joanna
[
Today
at 05:43:34 pm]
Ubuntu Mate / Laz 2.2.6 /...
by
cdbc
[
Today
at 05:31:41 pm]
Some observations on the ...
by
vfclists
[
Today
at 05:23:33 pm]
scrolling Tmemos simultan...
by
Joanna
[
Today
at 05:20:52 pm]
Ability to use the Win ke...
by
marcov
[
Today
at 05:17:51 pm]
[SOLVED] About $ and Cent...
by
wp
[
Today
at 04:03:14 pm]
String in binary file
by
Dzandaa
[
Today
at 03:54:51 pm]
RDP viewer in Pascal
by
ArminLinder
[
Today
at 03:28:09 pm]
Chinese Fonts in fpPDF
by
paweld
[
Today
at 03:19:01 pm]
Making a plea :)
by
BrunoK
[
Today
at 03:12:03 pm]
Besides TForm is there a ...
by
vfclists
[
Today
at 03:11:15 pm]
Optional parameter in fun...
by
carl_caulkett
[
Today
at 02:23:52 pm]
FpcUpDeluxe seems to have...
by
cdbc
[
Today
at 02:12:15 pm]
Q Win SHBrowseForFolder A...
by
d7_2_laz
[
Today
at 01:32:07 pm]
Error printing to zebra p...
by
magleft
[
Today
at 01:07:15 pm]
Use mORMot2 to export PDF...
by
dbannon
[
Today
at 12:33:49 pm]
[Solved] Shell controls s...
by
d2010
[
Today
at 12:13:47 pm]
TPairSplitter control lea...
by
wp
[
Today
at 11:31:27 am]
Xtensa-freertos wiki
by
ccrause
[
Today
at 09:48:49 am]
Building FPC 3.2.2 on Deb...
by
MarkMLl
[
Today
at 09:27:48 am]
Win SHBrowseForFolder API...
by
d2010
[
Today
at 09:02:38 am]
Class helpers cannot have...
by
Thaddy
[
Today
at 08:51:02 am]
Not able to install "fpc-...
by
dbannon
[
Today
at 07:19:07 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: OpenGL Koch Curve: Fixed and Rendering Well (Read 386 times)
Boleeman
Hero Member
Posts: 683
OpenGL Koch Curve: Fixed and Rendering Well
«
on:
September 21, 2024, 02:38:12 am »
Tried to convert an OpenGL Koch Curve fractal code from Delphi
Got an external access violation error.
I was rendering to the form canvas and not to the OpenGL control.
«
Last Edit: September 21, 2024, 05:27:14 pm by Boleeman
»
Logged
Boleeman
Hero Member
Posts: 683
Re: OpenGL Rainbow Koch Curve: External Access Error
«
Reply #1 on:
September 21, 2024, 03:47:22 am »
I replaced
dglOpenGL
with
GL
in uses and got rid of dglOpenGL.pas in Project inspector and now I don't have the access violation error. It compiles OK
I get a Yellow Koch Curve, but it is flashing.
«
Last Edit: September 21, 2024, 03:52:11 am by Boleeman
»
Logged
Lulu
Sr. Member
Posts: 259
Re: OpenGL Koch Curve: Problems
«
Reply #2 on:
September 21, 2024, 10:18:28 am »
Hi, at the end of the FormPaint method, if you replace Refresh by Invalidate there is no flashing.
Tested on windows 10.
There is another problem: the app don't stop if I click on the red cross at top-right of the windows.
Logged
wishing you a nice life!
GitHub repositories
https://github.com/Lulu04
Boleeman
Hero Member
Posts: 683
Re: OpenGL Koch Curve: Problems
«
Reply #3 on:
September 21, 2024, 11:17:08 am »
Thanks Lulu for the reply.
I worked out that I was not rendering to the OpenGL control, but to the Form1 canvas.
Now it is all fixed and working well.
«
Last Edit: September 21, 2024, 05:29:18 pm by Boleeman
»
Logged
Lulu
Sr. Member
Posts: 259
Re: OpenGL Koch Curve: Problems
«
Reply #4 on:
September 21, 2024, 07:09:16 pm »
Quote from: Boleeman on September 21, 2024, 11:17:08 am
I worked out that I was not rendering to the OpenGL control, but to the Form1 canvas.
I didn't realise it either
Logged
wishing you a nice life!
GitHub repositories
https://github.com/Lulu04
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
(Moderator:
Ask
) »
OpenGL Koch Curve: Fixed and Rendering Well
TinyPortal
© 2005-2018