|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Trig Tables, Console Apps
> float Sin[256]; > for(i = 0; i < 256; i++) Sin[i] = sin(i * PI / 128); // should be PI > divided by half the # of degrees > <sine of angle> = Sin[(unsigned char)<angle>]; Yeh that's ok but you could use normal Sin and Cos function these days since the processors are getting pretty fast, except if you're still working on an old Pentium or even 486. > Now for my (newbie) question. I feel like a total idiot asking this, but in > a DOS compiler, I've compiled DOS programs. In a Windows compiler, I've > compiled Windoze programs. Recently I read something about how easy it is > to use OpenGL with a console application. It sounded good to me, so I went > to try and figure out what a console application was by trying to compile > one with my Windows compiler. It came out in a DOS box, like a DOS program. > When I tried to use int 10h to switch video modes, though, it didn't do > anything. Now I'm guessing that a console application is a Windows program > running in a DOS interface? I can't seem to find any info on this on-line, > so I was hoping someone could explain to me what, exactly, a console > application is and what it can be used for. Is there a way to do graphics > directly (quickly) like modeX, or do I have to use OpenGL / DirectX. If so, > does anyone know of any resources I can look up on the subject or have an > opinion about using this (Is it slow, fast, portable, easy to use?) instead > of a normal Win or DOS app. It sounds promising to me because I don't like > using Windows, but I like the simplicity of not having to worry about all > the memory and compatibility issues of DOS. A windows console program is still a windows program, just that it runs in DOS Console, which isn't the same as a program compiled in DOS, if you look at the exe's headers you'll see that it's the same as a windows application. Setting your video mode wont work that way, use DirectX or OpenGL to do that for you, it will be faster (since it's done by your cards driver) and easier to do. Use windows man, It's easier than writting DOS stuff, since everything is already done, your task is just to use it. You have a fast access to just about anything you could think of... Internet, graphics, sound, input, ... www.opengl.org www.microsoft.com/directx ================ Ales Mlakar (aka JaZzBrE, ICQ# 2168060) JaZz=Life; // Jazz is Life ================ ================================================================= The GameProgrammer.Com mailing list is for the open discussion of any topic related to the art, science, and business of programming games. This list is especially tolerant of beginners. We were all beginners once To SUBSCRIBE or UNSUBSCRIBE please visit: http://gameprogrammer.com/mailinglist.html
|
|