Thread: Painting lines without libraries..possible??

  1. #1
    Registered User
    Join Date
    Jun 2002

    Painting lines without libraries..possible??

    Hi, I'm trying to create my own operating system with a C kernel, but I was looking for a simple line-draw in C. As I saw all examples using stdio.h or graph.h, they are not useable in my os, because they are written for windows/dos. Can anybody please help me??

  2. #2
    Guilty Spark 343
    You need to learn how to directly control the video screen. Then use something like Bresenhem's Line and Circle Algorithm as your first 2 graphic primitives.

  3. #3
    Registered User
    Join Date
    Jun 2002
    I know how to write directly to the videoscreen (found on the web) so I think that I can do this far. I'll try, thanks!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 11
    Last Post: 10-07-2008, 06:19 PM
  2. Print out first N lines
    By YoYayYo in forum C Programming
    Replies: 1
    Last Post: 02-21-2008, 12:58 AM
  3. MinGW thread-safe runtime libraries
    By Mario F. in forum C++ Programming
    Replies: 3
    Last Post: 08-21-2006, 08:15 AM
  4. Line Counting
    By 00Sven in forum C Programming
    Replies: 26
    Last Post: 04-02-2006, 08:59 PM
  5. Painting Lines
    By fuh in forum Windows Programming
    Replies: 14
    Last Post: 01-25-2005, 03:11 PM