From: "J. Erickson" Newsgroups: comp.os.msdos.djgpp Subject: Mode 13h graphics routines Date: Mon, 11 Nov 1996 23:34:40 -0500 Organization: polaristel.net Lines: 35 Message-ID: <3287FE60.2D96@menahga.polaristel.net> Reply-To: joyerick AT menahga DOT polaristel DOT net NNTP-Posting-Host: sebeka-4.dialup.polaristel.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Hi ya. I'm sure everybody's sick of these stupid GRAPHICS questions but I'll ask one anyway. I'm working on a graphics API library thingy for djgpp v2. I've created about six C++ classes so far (Bitmap, Pixel, HLine, VLine, Line, and Palette) that I can instantiate as objects on the heap. Anyway, I am using the nearptr method for my Pixel::PutToScreen method and it is pretty damn fast (especially on my mom's system which has a 64-bit S3 card). I have also written sort of a blitting routine for my Bitmap class that uses the memcpy function and it too is seemingly pretty fast. But I am hoping to get some advice on learning how to write a putpixel routine that is faster than the nearptr hacks and how to write a blitting routine that doesn't rely on memcpy but is as fast or faster. I'm a little familiar with the AT&T assembly code format but I haven't really written anything yet. I'm a little confused when it comes to that. Of course, I'm sure that any routines that I would need to write would probably be in assembly to be faster than what I have. Well, if anyone has the time and wants to donate a piece of their code for putpixel or blitting bitmaps routines, please feel free to reply to me. I have been looking at some of the DJGPP Inline Assembly Guides but I'm still a little lost. Any code or advice is appreciated. Thanx in advance. J. Erickson