![]() |
|
#1
|
|||
|
|||
Free Hand Drawing in FLTKHi All,
I'm new to fltk. I'm trying one assignment. I want to provide the provision where i shuld be able to write on fltk window... kind of free hand drawing with mouse...its like writing/ drawing on paper.. so lines are not straight ...it shuld appear as user moves the cursor..(like mspaint of windows) Do i need to use Open GL or what exactly.. I want to know the start point for such application... What & all things i shuould read to start with this... Thanks in Advance.. Nimeesh |
|
#2
|
|||
|
|||
Re: Free Hand Drawing in FLTKYou can do free hand drawing using openGL if you wish, or you can use the fltk drawing functions.
For both openGL and fltk, I can think of two approaches. 1) You can store data for each of the shapes or lines or points the user draws. 2) You could just allow the user to click on the screen to change the color of the pixel where the user clicks. I attach a few examples: freedraw1 (uses opengL and method 1) freedraw11.cpp (uses openGL and method 2) freedraw2.cpp (uses fltk drawing functions and method 1) freedraw21 (uses fltk drawing functions and method 2) --freedraw1- CPP / C++ / C Code:
--freedraw11-- CPP / C++ / C Code:
--freedraw2-- CPP / C++ / C Code:
--freedraw21-- CPP / C++ / C Code:
|
|
#3
|
|||
|
|||
Re: Free Hand Drawing in FLTKthanks a lot ..
its same thing what i looking for.. |
Recent GIDBlog
Meeting the local Iraqis by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Resellers w/FREE BILLING SYSTEM from $2.60! Shared Hosting w/SiteBuilder from $1.25!! | my-e-space | Web Hosting Advertisements & Offers | 0 | 04-Jun-2006 20:29 |
| Hip Hop and All kinds of New Beats Heard on This Site>>> | hiphop2006 | Music Forum | 0 | 08-Mar-2006 18:47 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The