Search found 769 matches

by Landeel
Sep 19, 2007 2:32
Forum: Beginners
Topic: ALPHA channel problem with FBPNG and CREATETEX.BI
Replies: 13
Views: 3323

createtex.bi is inside NeHe's examples. Sure it helps. If we upload it directly with PNG_TARGET_OPENGL, the alpha information goes fine. Thanks a lot. But what if I need to change the image before uploading? I still need to load it as FB.Image buffer before uploading, and my alpha channel gets lost....
by Landeel
Sep 19, 2007 0:33
Forum: Beginners
Topic: ALPHA channel problem with FBPNG and CREATETEX.BI
Replies: 13
Views: 3323

#include once "GL/gl.bi" #include once "GL/glu.bi" #include once "fbgfx.bi" #include once "createtex.bi" #include once "fbpng.bi" #include once "png_image.bi" #define RGBA_R(x) ((x) Shr 16 And 255) #define RGBA_G...
by Landeel
Sep 19, 2007 0:10
Forum: Beginners
Topic: ALPHA channel problem with FBPNG and CREATETEX.BI
Replies: 13
Views: 3323

ALPHA channel problem with FBPNG and CREATETEX.BI

I'm trying to make a sprite based game with OpenGL. I want to load a PNG image with FBPNG, and then make a texture with CREATETEX.BI When I load the PNG, the alpha information gets loaded okay in my buffer. But for some reason when I use the CreateTexture function, my alpha data gets lost and the te...
by Landeel
Sep 18, 2007 18:59
Forum: Beginners
Topic: OpenGL textures and keycolor
Replies: 2
Views: 1077

Yeah, good idea. Just what I needed. Thanks a lot.
by Landeel
Sep 18, 2007 16:02
Forum: Beginners
Topic: OpenGL textures and keycolor
Replies: 2
Views: 1077

OpenGL textures and keycolor

I am developing a sprite based game using OpenGL and FreeBASIC.
What is the easiest way to configure a texture so pixels of a certain color (say FF 00 FF) are not drawn?
by Landeel
Jul 02, 2007 19:41
Forum: Tips and Tricks
Topic: IncFile() and IncArray() macros [Updated 22-1-2009]
Replies: 88
Views: 49279

This is very useful. Thanks a lot!
But how do I retrieve the size of the inc file(s)?
(This is required to use with PNG_Load_mem)

EDIT:
Uh, sorry! Found it!
blahblah_len
by Landeel
Jun 04, 2007 19:17
Forum: Libraries
Topic: What about a VERY SIMPLE 3D-gfx library?
Replies: 19
Views: 9102

OpenGL is not hard at all. I bought a book "Introduction to OpenGL", and in two weeks I was programming a game in OpenGL. "OpenGL is a state machine"... Drawing with OpenGL is very similar to drawing with the old "DRAW" command from QB. Except it works in 3D. :) You may want to check NeHe' s example...
by Landeel
May 24, 2007 16:16
Forum: Libraries
Topic: What about a VERY SIMPLE 3D-gfx library?
Replies: 19
Views: 9102

OpenGL is much easier and multiplatform. I can't see any advantage in using DirectX.
by Landeel
Apr 25, 2007 17:04
Forum: Beginners
Topic: msgbox
Replies: 22
Views: 5824

Bah, better use external libs. :)
by Landeel
Apr 24, 2007 18:13
Forum: Beginners
Topic: msgbox
Replies: 22
Views: 5824

I guess that's because it would increase the EXE size even when not used.
by Landeel
Apr 23, 2007 18:01
Forum: Beginners
Topic: msgbox
Replies: 22
Views: 5824

Very nice. I'll just write a multiplatform function to do that (with IFDEF).
Thanks a lot.
by Landeel
Apr 19, 2007 18:17
Forum: Beginners
Topic: msgbox
Replies: 22
Views: 5824

Very nice. But is there such a simple way to do the same on Linux???
by Landeel
Feb 14, 2007 17:12
Forum: Beginners
Topic: FBC for AMD64
Replies: 2
Views: 1361

The 32-bit binaries run perfectly on AMD64 OS, as long as the required 32-bit libraries are installed, wich sometimes can be hard for the end-users. The compiler works also, with a little effort. I had to copy some dev libraries from a 32-bit installation, and do some tweaking. I'm looking forward a...
by Landeel
Feb 13, 2007 15:29
Forum: Beginners
Topic: FBC for AMD64
Replies: 2
Views: 1361

FBC for AMD64

Is it possible to compile a 64-bit binary (Linux) with FreeBASIC?
Is a 64-bit FBC planned?
by Landeel
Feb 02, 2007 13:46
Forum: Beginners
Topic: gfxlib and LGPL
Replies: 3
Views: 1599

As I understand, providing the object files is enough: http://en.wikipedia.org/wiki/GNU_Lesser_General_Public_License "... Alternatively, a statically linked library is allowed if either source code or linkable object files are provided. ..." http://www.gnu.org/licenses/lgpl.html "... If you link ot...

Go to advanced search