Coder Social home page Coder Social logo

minicad-painter's Introduction

March 13, '16
Adam Van Aken

Compile with 'make' and run with './main.o'

Can switch tool by holding down middle-mouse button (or 'up' arrow or 'shift+T') and dragging mouse cursor to desired tool.

Known bugs and limitations:
* Zooming still a WIP
* "Canvas" aspect still a WIP 
* Polygon mode works, but only for convex shapes AND/OR unfilled mode

File directory:
    - main.c
        This includes the main, init and display loop.
    - draw.c
        This includes the draw calls for different shapes. They are all called from within the display loop in main.c
    - callbacks.c
        This file mostly just holds the callbacks for the OpenGL events. However it also manages setting the tool with middle-mouse button/up arrow/shift+T.
    - helper.c
        This file has helper functions to add new shapes to the list of shapes. It also includes the clear and zoom functions
    - dlinked.c (dlinked.h)
        This is the linked list struct as well as all shape structs and constructor calls.
    - picker.c 
        This is code for a custom color picker.
        
To Do:
* Finish zooming
    * Drawing while zoomed
    * Zoom towards mouse cursor
* Add panning/scrollbars
* Limit drawing to within the "canvas"
* Toolbars (if canvas size is greater than window size)
* Point (pixel) drawing
* Transparency
* Exports (save/load)

minicad-painter's People

Contributors

adamvanaken avatar

Stargazers

SHANE avatar

Watchers

 avatar

Forkers

gpuworks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.