Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: simple freeware graphic library  (Read 1556 times)

0 Members and 1 Guest are viewing this topic.

papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
simple freeware graphic library
« on: October 09, 2003, 01:09:06 pm »
Is there a simple to use, freeware, (possibly open source) graphic library that can be used to write cabinet oriented software?
I can't seem to find a free slot or video poker software to run in my cab, and I'm itching to write one, but I don't want to spend the time writing a graphic engine.

JackTucky

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1613
  • Last login:January 04, 2021, 12:00:58 pm
  • Soon I will post that I am a triathalete
Re:simple freeware graphic library
« Reply #1 on: October 09, 2003, 09:05:03 pm »
I'll look around too.  I'd be interested in helping, even though I've never programmed on a PC before.

I'd really like the software to talk to an interface that can control the lights in the buttons.  Maybe with something like this?



http://www.polydroids.com/specs/3200000.html
Well, that's where we go a-ridin' into town, a whampin' and whompin' every livin' thing that moves within an inch of its life. Except the women folks, of course.

JoeB

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 628
  • Last login:June 27, 2025, 08:23:34 am
  • NES Fanatic
Re:simple freeware graphic library
« Reply #2 on: October 10, 2003, 10:11:58 am »
Your best bet is to download currently available applications and see what they use.  Some freeware graphics libraries require the author to give them credit in the FAQ.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:July 13, 2025, 11:38:27 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:simple freeware graphic library
« Reply #3 on: October 10, 2003, 11:48:28 am »
I think what you are asking for is a game maker program, not a graphics library.  I say this because almost every single graphics library is free.  There are also many free graphics engines out there, but regardless you have to know how to program in C or some other programming language to do the backend stuff.  

Now there are some game maker programs, the most noteable is called "game maker".  However the full versions of these programs are usually not free and they aren't very cabinet friendly.  (Can't redefine keys, some of them rely on mouse input, ect...)  

I'm not discouraging you, I'm just trying to make you aware that there isn't an "easy" way to make a game.  It still requires a bit of programming knowledge and some hard work.  

But with that being said.  It's video poker right?  You don't need a graphics engine.  You can put up images of cards and simple stuff like that with the built in windows gdi and any programming language.  You could do it quite easily in vb, visual c++, java or ect...  Since you aren't dealing with high frames of animation or anything like that, simple blitting to the screen should suffice.  Also you could probably do something like that in shockwave or flash.  It's not as "programatic" as visual studio languages if that's what you are worried about.

Hope that helps.  

mattreynolds

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:August 13, 2003, 10:33:06 am
Re:simple freeware graphic library
« Reply #4 on: October 10, 2003, 01:17:30 pm »
Check out SDL:

http://www.libsdl.org

It is a graphics library, but also has support for input methods (e.g. joysticks) and a few other goodies.

Read the license before you spend too much time with it though (in case it isn't your cup of tea).

In the end, by all means give it a whirl but -- as a professional software developer -- be prepared for a learning curve, some frustration, and long hours before you get a product you're happy with.  I write graphic-intensive applications all day (and have been for about nine years now) and still think twice about writing that next great {frontend, game, etc.}.

Good luck!
Matthew

papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
Re:simple freeware graphic library
« Reply #5 on: October 10, 2003, 02:18:40 pm »
I think what you are asking for is a game maker program, not a graphics library.  I say this because almost every single graphics library is free.  There are also many free graphics engines out there, but regardless you have to know how to program in C or some other programming language to do the backend stuff.  


Actually I am a programmer, so I do want a library that I can interface to (preferably in C), as you point out there are many and I was hoping for someone to say "hey, check out xyz library, I like it and it's great for cab oriented stuff".

Lilwolf

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4945
  • Last login:July 31, 2022, 10:26:34 pm
Re:simple freeware graphic library
« Reply #6 on: October 10, 2003, 02:27:47 pm »
If your a programmer already..

why not just jump into opengl?

You have some 2d support that isn't so great... but easy to add your own wrapper on...

but just gives you some fun new stuff to learn.

papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
Re:simple freeware graphic library
« Reply #7 on: October 10, 2003, 02:37:43 pm »
I wrote a wrapper library around DirectX a few years back, so I think I'd go that road before OpenGl because I have at least a bit of experience there. Unfortunately I was not allowed to retain the source code by my emplyer, so I would have to start all over again, which I'd rather not do...

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:July 13, 2025, 11:38:27 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:simple freeware graphic library
« Reply #8 on: October 10, 2003, 04:12:33 pm »
Well directX is what I use.  Unfortunately there aren't any good engines that are direct-x based that are free.  There are a lot of third-party freeware librares out there that are good, but they are open gl based.  Like you I'm not too comfortable with that and as I thought you were a novice I didn't even mention that route.  

Game maker that I mentioned is very nice.... some severe limitiations though.

Chris

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4574
  • Last login:September 21, 2019, 04:59:49 pm
    • Chris's MAME Cabinet
Re:simple freeware graphic library
« Reply #9 on: October 12, 2003, 11:47:13 pm »
Actually I am a programmer, so I do want a library that I can interface to (preferably in C), as you point out there are many and I was hoping for someone to say "hey, check out xyz library, I like it and it's great for cab oriented stuff".
I use Allegro (http://alleg.sourceforge.net).  It is cross-platform; the same code will compile on DOS, Windows, Unix (including, but not limited to, Linux), QNX, BeOS, and (limited support for now) Macintosh.  It features:

  •   Cross-platform support for DOS, Windows, Unix, BeOS, QNX and MacOS systems.
  •   Drawing functions including putpixel, getpixel, lines, rectangles, flat shaded, gouraud shaded, texture mapped, and z-buffered polygons, circles, floodfill, bezier splines, patterned fills, masked, run length encoded, and compiled sprites, blitting, bitmap scaling and rotation, translucency/lighting, and text output with proportional fonts. Supports clipping, and can draw directly to the screen or to memory bitmaps of any size.
  •   DOS graphics drivers for VGA mode 13h, mode-X (twenty three tweaked VGA resolutions plus unchained 640x400 Xtended mode), and SVGA modes with 8, 15, 16, 24, and 32 bit color depths, taking full advantage of VBE 2.0 linear framebuffers and the VBE/AF hardware accelerator API if they are available. Additional video hardware support is available from the FreeBE/AF project (http://www.talula.demon.co.uk/freebe/).
  •   Windows graphics drivers using DirectX in fullscreen and windowed modes, plus routines for drawing onto GDI device contexts.
  •   Unix graphics drivers for X, DGA, fbcon, SVGAlib, VBE/AF, mode-X, and standard VGA.
  •   BeOS graphics drivers using BWindowScreen in fullscreen and BDirectWindow in windowed modes.
  •   Hardware scrolling and triple buffering (where available), mode-X split screens, and palette manipulation.
  •   FLI/FLC animation player.
  •   Plays background MIDI music and up to 64 simultaneous sound effects, and can record sample waveforms and MIDI input. Samples can be looped (forwards, backwards, or bidirectionally), and the volume, pan, pitch, etc, can be adjusted while they are playing. The MIDI player responds to note on, note off, main volume, pan, pitch bend, and program change messages, using the General MIDI patch set and drum mappings. DOS version currently supports Adlib, SB, SB Pro, SB16, AWE32, MPU-401, ESS AudioDrive, Ensoniq Soundscape, and Windows Sound System. Windows version supports WaveOut and DirectSound interfaces and the system MIDI drivers. Unix version supports OSS, ESD, and ALSA sound drivers. BeOS version supports BSoundPlayer and BMidiSynth interfaces. All versions provide software wavetable MIDI playback.
  •   Easy access to the mouse, keyboard, joystick, and high resolution timer interrupts, including a vertical retrace interrupt simulator in the DOS version.
  •   Routines for reading and writing LZSS compressed files.
  •   Multi-object data files and a grabber utility.
  •   Math functions including fixed point arithmetic, lookup table trig, and 3d vector/matrix/quaternion manipulation.
  •   GUI dialog manager and file selector.
  •   Built-in support for 16-bit and UTF-8 format Unicode characters.
I use it for DOSCab/WinCab jukebox, and I believe that a couple of frontends use it as well.  MAME itself uses Allegro for some functions (although possibly only for the DOS version).

Check out http://www.allegro.cc for the Allegro user community.

--Chris

« Last Edit: October 12, 2003, 11:47:46 pm by Chris »
--Chris
DOSCab/WinCab Jukebox: http://www.dwjukebox.com

papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
Re:simple freeware graphic library
« Reply #10 on: October 13, 2003, 12:05:31 am »
Sounds great!

DosCab/WinCab sounds nice. I'm currently using Arcade Jukebox and this looks similar. One feature thta I wish I had in a jukebox is the ability to select an album (from a list showing only album titles, or even pictures) and then select a songfrom that.
Not "True" jukebox functionnality, but I have about 100 CDs that I ripped to MP3, so finding a song can take a long time.

I'll check out allegro, sounds like what I want.

Chris

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4574
  • Last login:September 21, 2019, 04:59:49 pm
    • Chris's MAME Cabinet
Re:simple freeware graphic library
« Reply #11 on: October 13, 2003, 12:30:19 am »
DosCab/WinCab sounds nice. I'm currently using Arcade Jukebox and this looks similar. One feature thta I wish I had in a jukebox is the ability to select an album (from a list showing only album titles, or even pictures) and then select a songfrom that.
Not "True" jukebox functionnality, but I have about 100 CDs that I ripped to MP3, so finding a song can take a long time.
That's more like a modern CD jukebox; if that's your bag, take a look at http://www.virtualmusicjukebox.com/, which should do exactly what you want.  This is the second request I've had for an input model where you select an artist or album first and then a song with the classic jukebox interface, though, so it may be worth looking into (I'm working on an update for DOSCab/WinCab jukebox right now)...

For now, you can set the SongSort=Artist option, and that should help you narrow in on a song pretty quickly.

To me, part of the whole jukebox experience is browsing through looking for songs you like; of course, on your own jukebox, they're all going to be songs you like...
--Chris
DOSCab/WinCab Jukebox: http://www.dwjukebox.com

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:July 13, 2025, 11:38:27 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:simple freeware graphic library
« Reply #12 on: October 13, 2003, 09:08:50 am »
Well I didn't want to let this out yet as I never know when I'll get it finished but I have such a jukebox program in the works.  It has a classic jukebox mode, a media center mode and a shoutcast "radio" mode.  You can sort by any data available, including things like year, genre and anything else that might be in the tags.  You can also set the naviagtion buttons to skip to the next song by any of those sort methods as well.  Also it supports looking up album and artist art via the net, and it will support looking up video artwork via the internet movie database (which also carries a good deal of aw for video games and television for some reason.)  Unfortunately it's all completely backend at this point.  It doesn't have a gui or sound engine yet, I'm just trying to get the skins, network interfaceing, and data formats finished.  

Look for it sometime early next year.  

ErikRuud

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1709
  • Last login:March 05, 2021, 10:20:27 am
  • I'll build a cab for only 99.99.99!!!
    • Erik's humble video game page
Re:simple freeware graphic library
« Reply #13 on: October 13, 2003, 02:15:45 pm »
I am using DosCab on my cabinet.  I have put together the configuration files to run it from GameLauncher using a .bat file.

I have not actually done it yet, but I am going to setup the .bat file so that it copies the doscab songlist.ini from the CD.  Then I will set up my .mp3 CDs so that they each have their own songlist.ini file.  That way I can have more than one cd set up with different artists.

It not as good as what you are looking for, but works for me.
Real Life.  Still a poor substitute for video games!       
American Laser Games Wrapper
O2em Rom Utility

papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
Re:simple freeware graphic library
« Reply #14 on: October 13, 2003, 03:37:05 pm »
If I understand you correctly, this means that you need to go back to the front end to play a different CD, is that right?

Chris

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4574
  • Last login:September 21, 2019, 04:59:49 pm
    • Chris's MAME Cabinet
Re:simple freeware graphic library
« Reply #15 on: October 13, 2003, 03:48:24 pm »
If I understand you correctly, this means that you need to go back to the front end to play a different CD, is that right?
The version I'm working on right now will allow multiple music roots to solve this sort of problem....

--Chris
--Chris
DOSCab/WinCab Jukebox: http://www.dwjukebox.com

ErikRuud

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1709
  • Last login:March 05, 2021, 10:20:27 am
  • I'll build a cab for only 99.99.99!!!
    • Erik's humble video game page
Re:simple freeware graphic library
« Reply #16 on: October 14, 2003, 09:48:56 am »
Papaschtoumpf,

Yes, I would need to exit to the front end  to change cd's.

It is a "work around" until something better comes along.

Real Life.  Still a poor substitute for video games!       
American Laser Games Wrapper
O2em Rom Utility