200 Introduction to C++ Programming and Graphics
(a)(b)
Figure 7.2.1. (a) A blankVoglewindow, and (b) a greetingVoglewindow.
where the backslash is a line continuation mark.
Throughout this chapter, we shall assume that theVogleC++ header
filevoglec++.hresides in the subdirectoryVOGLE of the current working
directory.
7.2 Getting started withVogle.....................
The following code contained in the filewindow.ccgenerates the red graphics
window shown in Figure 7.2.1(a):
#include "VOGLE/voglec++.h"
using namespace std;
int main()
{
prefposition (600,200); // window position
prefsize(300, 300); // window size
vinit("X11"); // initialize the screen
color (RED);
clear();
getkey();
return 0;
}