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
Quiche (and BoringSSL) bi...
by
r.lukasiak
[
Today
at 01:29:32 am]
TMenuItem, How to insert ...
by
wp
[
Today
at 01:11:21 am]
Helper functions for Inte...
by
TRon
[
Today
at 01:09:39 am]
[Solved] Indy10 and Onlin...
by
Aruna
[
Today
at 12:59:31 am]
Making a plea :)
by
Warfley
[
Today
at 12:23:52 am]
AVRPascal – free code edi...
by
ackarwow
[
Today
at 12:18:56 am]
[SOLVED] StringGrid how t...
by
What I can do
[October 06, 2024, 11:57:29 pm]
Advice needed on creating...
by
bobby100
[October 06, 2024, 11:56:37 pm]
[SOLVED] About $ and Cent...
by
1HuntnMan
[October 06, 2024, 11:42:57 pm]
scrolling Tmemos simultan...
by
Joanna
[October 06, 2024, 11:36:46 pm]
[SOLVED] Database update ...
by
dseligo
[October 06, 2024, 11:27:28 pm]
GLIBC_2.34 and pas2js
by
Fred vS
[October 06, 2024, 11:07:09 pm]
Undo/redo in TSTringGrid ...
by
jamie
[October 06, 2024, 10:48:05 pm]
How to build own ide in L...
by
Warfley
[October 06, 2024, 10:15:02 pm]
[Solved]: SynEdit.Lines.S...
by
JdeHaan
[October 06, 2024, 09:12:28 pm]
question on how to retrie...
by
pjtuloup
[October 06, 2024, 08:50:04 pm]
Why MaxDouble does not eq...
by
BrunoK
[October 06, 2024, 07:15:36 pm]
[SOLVED] Time Format
by
paweld
[October 06, 2024, 06:27:40 pm]
Class helpers cannot have...
by
vfclists
[October 06, 2024, 05:04:55 pm]
Ability to use the Win ke...
by
Thaddy
[October 06, 2024, 04:49:13 pm]
Working MIDI app for the ...
by
bobby100
[October 06, 2024, 03:43:22 pm]
How to update a component...
by
jamie
[October 06, 2024, 03:33:41 pm]
CanvasBGRA transparency
by
petevick
[October 06, 2024, 03:31:10 pm]
[SOLVED] BGRABitmap, Canv...
by
petevick
[October 06, 2024, 03:29:58 pm]
is any library can load a...
by
d2010
[October 06, 2024, 03:19:59 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: OpenGL Koch Curve: Fixed and Rendering Well (Read 389 times)
Boleeman
Hero Member
Posts: 684
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: 684
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: 684
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