Search found 355 matches

by datwill310
Apr 06, 2017 13:52
Forum: Beginners
Topic: FreeImage and Displaying Images *SOLVED*
Replies: 32
Views: 3371

Re: FreeImage and Displaying Images

fxm wrote:It is only mandatory to use the GFX_SHAPED_WINDOW flag.

I implemented this flag, and the images still render as black squares wherever alpha is used.
by datwill310
Apr 06, 2017 13:05
Forum: Beginners
Topic: Loading a DLL from a Folder?
Replies: 14
Views: 1987

Re: Loading a DLL from a Folder?

- Sounds confusing XD I wouldn't know how to! It sounds and maybe looks more complicated than it is. You just have to add the dll directory to the PATH environment variable. Here's a batch file that adds the "my_dlls" subdirectory to the PATH variable and executes "my_application.exe...
by datwill310
Apr 06, 2017 12:02
Forum: Beginners
Topic: Loading a DLL from a Folder?
Replies: 14
Views: 1987

Re: Loading a DLL from a Folder?

- don't let the OS Loader search and load the DLL files, but load them manually (dylibload, ...). This could be some additional effort however as you have to do everything manually that's normally done by the loader. - modify the search path before your executable is loaded. For example use a separ...
by datwill310
Apr 06, 2017 11:55
Forum: Beginners
Topic: FreeImage and Displaying Images *SOLVED*
Replies: 32
Views: 3371

Re: FreeImage and Displaying Images

fxm wrote:Are you well using:
Screen mode , depth , num_pages , FB.GFX_SHAPED_WINDOW
or
ScreenRes width, height , depth , num_pages , FB.GFX_SHAPED_WINDOW

I am not using the num_pages parameter, and I am also not using the GFX_SHAPED_WINDOW flag. However, I'll test out your suggestions!
by datwill310
Apr 06, 2017 1:49
Forum: Projects
Topic: sGUI
Replies: 238
Views: 45401

Re: sGUI

Muttonhead,

I think I will use this library for my new game I'm making! Great work!
by datwill310
Apr 06, 2017 1:19
Forum: Beginners
Topic: FreeImage and Displaying Images *SOLVED*
Replies: 32
Views: 3371

Re: FreeImage and Displaying Images

datwill310 wrote:

It works perfectly! Thanks to you and cha0s!

Actually, I think I've come across an issue with images containing alpha. They just render as black boxes.
by datwill310
Apr 05, 2017 14:41
Forum: Libraries
Topic: Graphics for a game
Replies: 5
Views: 1358

Re: Graphics for a game

This code needs a 640x480 image set named like this. img1.bmp img2.bmp img3.bmp It plays them while bouncing the animation around the screen. Const wtime=0.1 'Amount of time to wait between frames in seconds Const frames=3' number of images in the animation. Just change this and it will add more fr...
by datwill310
Apr 05, 2017 14:16
Forum: Beginners
Topic: FreeImage and Displaying Images *SOLVED*
Replies: 32
Views: 3371

Re: FreeImage and Displaying Images


It works perfectly! Thanks to you and cha0s!
by datwill310
Apr 05, 2017 14:08
Forum: Libraries
Topic: Graphics for a game
Replies: 5
Views: 1358

Re: Graphics for a game

Animation can be done in FB_GFX. I've animated a 640x480 image set with sleep. Maybe post some code? OpenGl will probably be faster then FB_GFX and most computers can use it. I have an old windows 98 pc and it runs opengl fine. I generally just use FB_GFX. It suits all my needs. FMOD too looks amaz...
by datwill310
Apr 05, 2017 13:20
Forum: Beginners
Topic: FreeImage and Displaying Images *SOLVED*
Replies: 32
Views: 3371

Re: FreeImage and Displaying Images


Not yet; I will have a good look! Very helpful to convert FIBITMAP images to FB images! Will get back to you once I test it.
by datwill310
Apr 04, 2017 19:31
Forum: Beginners
Topic: Loading a DLL from a Folder?
Replies: 14
Views: 1987

Re: Loading a DLL from a Folder?

fxm wrote:ExecPath is only set at runtime obviously.

Try with __Path__
(absolute path of the source file at the time of compilation)

Thanks for the help! But I think expressions aren't allowed in preprocessor statements (eg __PATH__ + "\bin" or __PATH__ & "\bin")?
by datwill310
Apr 04, 2017 18:08
Forum: Beginners
Topic: Loading a DLL from a Folder?
Replies: 14
Views: 1987

Re: Loading a DLL from a Folder?

MrSwiss wrote:Another possible way to get there:

Code: Select all

#Inclib [Once] ExePath + "\libdir\libname"
This isn't tried code, just an idea ...

The compiler prevented me from using exepath with #include, it seems ;).
by datwill310
Apr 04, 2017 18:04
Forum: Beginners
Topic: FreeImage and Displaying Images *SOLVED*
Replies: 32
Views: 3371

FreeImage and Displaying Images *SOLVED*

I have managed to correctly link the FreeImage DLL to my program. I have a 256x256 test image stored in PNG format. I am able to load, unload, and access various information about this image, such as dimensions, formats, and pixel sizes (it's the furthest I've ever gone to incorporating PNG support ...
by datwill310
Apr 04, 2017 17:55
Forum: Beginners
Topic: Loading a DLL from a Folder?
Replies: 14
Views: 1987

Re: Loading a DLL from a Folder?

Why then, don't you simply stick to the most common way: ExeDir = Lib-Dir (you can seldom have it both ways: elegant, and being easy too) I guess so :/ it just seems so nice and neat :) and I've seen plenty of other programs do such a thing (fbc itself seems to be an example, and fbc is programmed ...
by datwill310
Apr 04, 2017 17:45
Forum: Beginners
Topic: Loading a DLL from a Folder?
Replies: 14
Views: 1987

Re: Loading a DLL from a Folder?

You might have to use #LibPath "dir-name_containing_lib" before you #Include the lib (dll or static). This method is unattractive since: Adds a library search path to the linker's list of search paths as if it had been specified on the command line with the '-p' option. Paths are relative...

Go to advanced search