Discussion Overview
The discussion revolves around methods for drawing pixels on the screen using the C programming language, particularly in the context of Visual C++ 6.0. Participants explore various libraries and techniques for graphical output, including both modern and older approaches.
Discussion Character
- Exploratory
- Technical explanation
- Debate/contested
Main Points Raised
- One participant expresses difficulty in finding a simple putpixel(x,y) function for drawing in a DOS window using Visual C++ 6.0 and questions whether assembly language is necessary for direct video memory access.
- Another participant mentions that modern compilers support graphics, citing Borland's "C++ Builder" with its Canvas class and Microsoft's Visual C++ using OpenGL's glDrawPixels function.
- A suggestion is made to use the Win32 API directly for drawing in Windows mode, detailing steps to create a window and use the SetPixel function within the window's message handling procedure.
- Links to potentially useful examples and resources are provided by a participant.
- One participant asserts that C lacks a built-in graphical toolkit and recommends the Qt toolkit for its ease of use and power, offering assistance for getting started with it.
- A later reply indicates that the original poster has successfully drawn on a window and expresses future intentions to develop a 3D engine for a game involving complex physics concepts.
- Another participant suggests using SDL for its ease of learning, while also mentioning the older graphics.h library that was commonly packaged with Borland C but not with VC++ 6.0.
Areas of Agreement / Disagreement
Participants present multiple competing views on the best approach to drawing graphics in C, with no consensus on a single method or library being universally preferred.
Contextual Notes
Some participants reference specific libraries and tools that may not be available or compatible with all versions of C or Visual C++. There are also indications of varying levels of experience among participants, which may affect the applicability of certain suggestions.
Who May Find This Useful
This discussion may be useful for beginners in C programming looking to understand graphical output options, as well as those interested in developing applications that require pixel manipulation or graphical interfaces.