About the graphics tutorial hosted here..

This is a discussion on About the graphics tutorial hosted here.. within the C++ Programming forums, part of the General Programming Boards category; It's me again.. boy how long has it been since I actually posted ehre anyways? Too long methinks :P Well ...

  1. #1
    Geek. Cobras2's Avatar
    Join Date
    Mar 2002
    Location
    near Westlock, and hour north of Edmonton, Alberta, Canada
    Posts
    113

    About the graphics tutorial hosted here..

    It's me again.. boy how long has it been since I actually posted ehre anyways? Too long methinks :P
    Well here goes..

    I'm trying to learn how to at least get started with some graphics, without being bogged down by the entire framework of OpenGL or DirectDraw/3D: All I want for now is a simple engine that can draw stuff.
    So I came back here to cprograming.com and opened up the tutorials section, read thru the graphics tutorial (first one); unfortunately.. it won't seem to work.

    Does that tutorial work in only DOS mode?
    Will it run in indows XP?
    I haven't tried yet in DOS but it doesn't seem to work in XP - unless I just typed something wrong. If no answers I can post my code for you to check - it's minimal at the moment. (like 15 lines..)
    BTW I'm using Visual C++ 6.0
    James G. Flewelling
    Rgistered Linux User #327359
    Athabasca University Student (BSc. CIS)

    http://catb.org/~esr/faqs/smart-questions.html
    http://catb.org/jargon/

    http://www.ebb.org/ungeek
    ---GEEK CODE---
    Version: 3.12
    GCS/IT/M d- s+:++ a-->->>+>++>+++>? C++++>$ UL++>++++$ P++>++++ L++>++++$
    E W++ N o? K? w++(--)>--- O? M? V? PS--(---) PE Y+ PGP? t 5? !X R(*)>++
    tv-->! b++(+++)>++++ DI? D+++(---)>++++$ G e*>++$ h++>*$ r!>+++ y?
    ----/GEEK CODE----
    upd: 2005-02-11

  2. #2
    Just a Member ammar's Avatar
    Join Date
    Jun 2002
    Posts
    953
    By the way I found some easy tutorials about openGL on this website. http://nehe.gamedev.net/

  3. #3
    Geek. Cobras2's Avatar
    Join Date
    Mar 2002
    Location
    near Westlock, and hour north of Edmonton, Alberta, Canada
    Posts
    113
    indeed I also read the tutorials there, they are quite excellent and I found them quite useful.. However I want to try out some stuff where I can work on other aspects of coding and minimize my time spent on the actual graphics... thanx for the link though
    James G. Flewelling
    Rgistered Linux User #327359
    Athabasca University Student (BSc. CIS)

    http://catb.org/~esr/faqs/smart-questions.html
    http://catb.org/jargon/

    http://www.ebb.org/ungeek
    ---GEEK CODE---
    Version: 3.12
    GCS/IT/M d- s+:++ a-->->>+>++>+++>? C++++>$ UL++>++++$ P++>++++ L++>++++$
    E W++ N o? K? w++(--)>--- O? M? V? PS--(---) PE Y+ PGP? t 5? !X R(*)>++
    tv-->! b++(+++)>++++ DI? D+++(---)>++++$ G e*>++$ h++>*$ r!>+++ y?
    ----/GEEK CODE----
    upd: 2005-02-11

  4. #4
    Geek. Cobras2's Avatar
    Join Date
    Mar 2002
    Location
    near Westlock, and hour north of Edmonton, Alberta, Canada
    Posts
    113
    Umm.. is anyone out there? Not to be rude but I'd kind of like an answer. Unfortunately I don't have a way of checking wether my current rpogram will run under DOS. I did however try compiling it in Linux with gcc... but I can't figure out what the keyword for using assembly is??? in MSVC++ 6.0 it's just
    Code:
    _asm insert asm stuff here
    but what is it in gcc??

    anyway that all leads to the fact that I haven't yet found out if it works. Here's the code I have right now...

    Code:
    #include <iostream>
    using namespace std;
    
    void SetMCGA()
    {
    	_asm mov ax,0013h
    	_asm int 10h
    }
    
    void SetText()
    {
    	_asm mov ax,0003h
    	_asm int 10h
    }
    
    int main()
    {
    	SetMCGA();
    	SetText();
    	return 0;
    }
    Any help would be appreciated..
    James G. Flewelling
    Rgistered Linux User #327359
    Athabasca University Student (BSc. CIS)

    http://catb.org/~esr/faqs/smart-questions.html
    http://catb.org/jargon/

    http://www.ebb.org/ungeek
    ---GEEK CODE---
    Version: 3.12
    GCS/IT/M d- s+:++ a-->->>+>++>+++>? C++++>$ UL++>++++$ P++>++++ L++>++++$
    E W++ N o? K? w++(--)>--- O? M? V? PS--(---) PE Y+ PGP? t 5? !X R(*)>++
    tv-->! b++(+++)>++++ DI? D+++(---)>++++$ G e*>++$ h++>*$ r!>+++ y?
    ----/GEEK CODE----
    upd: 2005-02-11

  5. #5
    Geek. Cobras2's Avatar
    Join Date
    Mar 2002
    Location
    near Westlock, and hour north of Edmonton, Alberta, Canada
    Posts
    113
    ok thx

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Introductory Graphics in C, Info & Tutorial
    By Adak in forum Game Programming
    Replies: 5
    Last Post: 03-16-2009, 05:57 PM
  2. Graphics tutorial
    By ssjnamek in forum C++ Programming
    Replies: 1
    Last Post: 08-15-2005, 02:13 AM
  3. Tutorial for making better computer graphics?
    By supertoad in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 05-02-2005, 12:19 AM
  4. Graphics && Tutorial
    By GaPe in forum C Programming
    Replies: 2
    Last Post: 03-06-2002, 10:57 AM
  5. A Tutorial For Graphics In C!!!
    By SupremeOmnipotence in forum C Programming
    Replies: 4
    Last Post: 01-17-2002, 05:04 PM

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