Painting lines without libraries..possible??

This is a discussion on Painting lines without libraries..possible?? within the C Programming forums, part of the General Programming Boards category; Hi, I'm trying to create my own operating system with a C kernel, but I was looking for a simple ...

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    2

    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
    Guest
    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
    Posts
    2
    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-20-2008, 11:58 PM
  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, 02:11 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21