On Sun, 11 Oct 2015, Ryan Joseph wrote:
I’m coming from the Mac and I’d like to replace some code that loads .png files
into OpenGL textures using Apple libraries that aren’t cross platform
compatible.
Does the FPC RTL contain any units for loading PNG files as bitmaps that I
could
> On Oct 11, 2015, at 1:53 PM, Michael Van Canneyt
> wrote:
>
> You can use the fpimage and fpreadpng units. Check the packages/fcl-image
> sources. There is a small demo program that shows how to do it.
I see you can load an image as TFPCustomImage with
I’m coming from the Mac and I’d like to replace some code that loads .png files
into OpenGL textures using Apple libraries that aren’t cross platform
compatible.
Does the FPC RTL contain any units for loading PNG files as bitmaps that I
could extract the pixel data from and make textures for?
On 2015-10-11 05:29, Ryan Joseph wrote:
> Does the FPC RTL contain any units for loading PNG files as bitmaps
As Michael mentioned, fpimage and fpreadpng can do this. Here is how I
use it to populate fpGUI's TfpgImage class with image data.
I habitually use something like
fpcV= 'Free Pascal v' + (*$I %FPCVERSION% *) ;
fpcC= ' for ' + (*$I %FPCTARGETCPU% *) ;
to generate "about box" text for programs, and designate the binary name
using the Lazarus IDE like
Not sure what subject line to use to summarize what I'm trying to do
here, but that is kind of related :)
So I would like to use an interface that inherits from another
interface, and ... well rather than describe what I'm trying to do, I
think code speaks best.
type
// here is the first
Am 11.10.2015 18:46 schrieb "Mark Morgan Lloyd" <
markmll.fpc-pas...@telemetry.co.uk>:
>
> I habitually use something like
>
> fpcV= 'Free Pascal v' + (*$I %FPCVERSION% *) ;
> fpcC= ' for ' + (*$I %FPCTARGETCPU% *) ;
>
> to generate "about box" text for programs, and designate
You can write an interface to the quartz libs and have them load or save a
variety of image formats such as bmp, jpg, gif, and png. I've done this
with OpenGL on OSX with Free Pascal and I look for the code and post it to
git sometime, maybe even Today.
http://codebot.org/baregame/
> On Oct 12, 2015, at 3:46 AM, Anthony Walter wrote:
>
> You can write an interface to the quartz libs and have them load or save a
> variety of image formats such as bmp, jpg, gif, and png. I've done this with
> OpenGL on OSX with Free Pascal and I look for the code and
> On Oct 11, 2015, at 10:45 PM, Graeme Geldenhuys
> wrote:
>
> As Michael mentioned, fpimage and fpreadpng can do this. Here is how I
> use it to populate fpGUI's TfpgImage class with image data.
>
>
Hi,
I've seen on the list that the STM32F429 has some support in fpc now!
A couple of years ago I got a STM32F407 discovery board. Is the code for
*29 compatible with *07?
Regards,
Andrew Haines
___
fpc-pascal maillist -
I tend to use OS core elements or well known open source libraries for a
few reasons.
1) less code compiled and small programs
2) superior performance
3) more features
Example: When loading hundreds of textures you bet the Apple Quartz
graphics libs are faster and more reliable. Same goes to WIC
Okay, I looked at my Darwin sources which use minimal wrappers around the
inbuilt Quartz classes to handle image loading, saving, and pixel data
access.
To load any image (png, jpg, bmp, gif, ect) you use a CGImageSourceRef
object.
>From file:
ImageSource :=
> On Oct 12, 2015, at 9:47 AM, Anthony Walter wrote:
>
> Okay, I looked at my Darwin sources which use minimal wrappers around the
> inbuilt Quartz classes to handle image loading, saving, and pixel data access.
>
I have a good working implementation of loading OpenGL
> On Oct 12, 2015, at 10:57 AM, Anthony Walter wrote:
>
> I tend to use OS core elements or well known open source libraries for a few
> reasons.
>
> 1) less code compiled and small programs
> 2) superior performance
> 3) more features
>
> Example: When loading hundreds of
15 matches
Mail list logo