styczynski / waccgl

Windows Advanced Console Componental Graphics Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Made by Styczynsky Digital Systems

Platform - Windows

WACCGL (C/C++ library, Windows)

Windows Advanced Console Componental Graphics Library

Some examples involving WACCGL usage:

TicTacConsole game involves usage of old integrated WACCGL code see...

WACCGL Screenshot No. 1 WACCGL Screenshot No. 2 WACCGL Screenshot No. 3

About

This is just another crazy library, which allows you to create ascii-text graphical user interface inside Windows Command Prompt!

All Feautures:

  • Mouse (and scroll wheel) support (little fancy text cursor inside CMD!)
  • Fancy GUI inside command prompt
  • Handling special event
  • Many useful components (like lists, editboxes etc.)

Unfortunately this project isn't well documented yet (try to read the examples). :(

Compiling

The library contains examples files. Makefile commands:

  • To get some help type make or make help
  • To compile examples use the following command: make all
  • To get list of all available examples type: make run-example
  • To run an example type: make run-example-NAME (e.g. make run-example-demo)
  • To clean project directory use make clean
  • To rebuild everything run: make rebuild

Examples

The library contains few examples. You can see them to figure out how to use WACCGL.

  • basic.cpp - basic usage
  • demo.cpp - demo of some components
  • manual-drawing.cpp - some manual buffer manipulation code
  • mouse.cpp - simple mouse support
  • no-buffer-cleaning.cpp - you don't have to clean up this mess
  • scene-animations.cpp - some simple transitions
  • windows.cpp - how about an iternal window?
  • own-component.cpp - custom component implementation

Support for other OSes

All the library depends on ./include/console.h.

If you want to port this library to linux just rewrite the console.h code.

Supported GUI components:

  • Scenes - scene
  • Checkboxes - checkbox
  • Text frames - textframe
  • Component frames - frame
  • Ascii image frames - imgframe
  • Buttons - button
  • Select boxes - selbox / slistbox / listbox
  • Expandable lists - exlistbox
  • Scrollbars - vscrollbar
  • Progressbars - progressbar
  • Edit boxes - edittextframe

Of course you can implement any GUI component by extending scene_object class.

About

Windows Advanced Console Componental Graphics Library

License:MIT License


Languages

Language:C++ 96.9%Language:Makefile 1.7%Language:C 1.4%