Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
OpenGL
»
Read texture from file via LoadGLTextureFromFile from VampyreImaging
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
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
exception external SIGSEG...
by
billjtx
[
Today
at 01:06:50 am]
Commerce website written ...
by
Joanna
[
Today
at 01:00:28 am]
So many "newbies"
by
Curt Carpenter
[
Today
at 12:40:11 am]
Recompiled IDE with LCLRe...
by
AlexTP
[December 12, 2025, 09:35:04 pm]
TaurusTLS 1.0.0.25 beta 2...
by
LeP
[December 12, 2025, 09:21:31 pm]
Single / Double / Float s...
by
tetrastes
[December 12, 2025, 09:10:39 pm]
Publish a LAMW app in F-d...
by
spacepascal
[December 12, 2025, 09:00:41 pm]
OS/2 Warp 4 problem with ...
by
PascalDragon
[December 12, 2025, 08:30:23 pm]
TLazSerial : serial port ...
by
tetrastes
[December 12, 2025, 08:23:58 pm]
Introducing PasBuild 1.0....
by
PascalDragon
[December 12, 2025, 08:20:32 pm]
Convert string with Key-V...
by
Bart
[December 12, 2025, 07:28:04 pm]
Hashing pointers by using...
by
BrunoK
[December 12, 2025, 07:11:30 pm]
The TChromeTabs component...
by
1-berto
[December 12, 2025, 07:02:28 pm]
Military Grade Directives
by
Warfley
[December 12, 2025, 05:44:12 pm]
connecting to mariadb
by
marcov
[December 12, 2025, 04:13:37 pm]
TIBDataSet "Closing"? on ...
by
RedOctober
[December 12, 2025, 03:09:07 pm]
How can I make a safe app...
by
marcov
[December 12, 2025, 02:58:10 pm]
fpsockets error: 10047
by
Warfley
[December 12, 2025, 01:32:51 pm]
FPC 3.2.4-rc1 available
by
marcov
[December 12, 2025, 10:47:38 am]
[SOLVED] Lazreport. Multi...
by
Petrus Vorster
[December 12, 2025, 09:27:32 am]
Has anyone installed TeeB...
by
egsuh
[December 12, 2025, 06:34:29 am]
[SOLVED] Program compiles...
by
Schmitty2005
[December 11, 2025, 07:35:39 pm]
[SOLVED] Need help conver...
by
srvaldez
[December 11, 2025, 01:52:33 pm]
SpkToolbar custom update
by
wp
[December 11, 2025, 01:48:16 pm]
Is FPGUI still active?
by
BSaidus
[December 11, 2025, 01:25:31 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Read texture from file via LoadGLTextureFromFile from VampyreImaging (Read 2120 times)
LemonParty
Sr. Member
Posts: 391
Read texture from file via LoadGLTextureFromFile from VampyreImaging
«
on:
December 16, 2024, 07:44:28 pm »
Hello.
I installed VampyreImaging library from online package manager.
I used function LoadGLTextureFromFile to load a texture from bmp file and this give SIGSEGV. Is there other ways I can load texture?
Logged
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11
Khrys
Sr. Member
Posts: 367
Re: Read texture from file via LoadGLTextureFromFile from VampyreImaging
«
Reply #1 on:
December 17, 2024, 07:14:19 am »
How are you calling
LoadGLTextureFromFile
? Do you have a call stack/backtrace?
Looking at the function signature and knowing you're getting a segfault, I suspect that you might be passing invalid pointers as
CreatedWidth
and
CreatedHeight
. It should be something like this:
Code: Pascal
[Select]
[+]
[-]
var
Texture
:
GLuint
;
Width
,
Height
:
LongInt
;
begin
Texture
:
=
LoadGLTextureFromFile
(
'tex.bmp'
,
@
Width
,
@
Height
)
;
// Width and Height now contain the bitmap's dimensions
end
;
Logged
LemonParty
Sr. Member
Posts: 391
Re: Read texture from file via LoadGLTextureFromFile from VampyreImaging
«
Reply #2 on:
December 17, 2024, 01:09:33 pm »
Falling even when I call it this way LoadGLTextureFromFile('tex.bmp', @Width, @Height).
Logged
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
OpenGL
»
Read texture from file via LoadGLTextureFromFile from VampyreImaging
TinyPortal
© 2005-2018