Project #2 Drawing with SDL 2.0 solution

$20.00

Original Work ?

Download Details:

  • Name: asg2.zip
  • Type: zip
  • Size: 56.17 KB

Category: You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

Description

5/5 - (3 votes)

Figure 1: Bullseye
The purpose of this assignment is to help you to become familiar with SDL
drawing and to provide practice writing C
++ classes. For this project you must
use the SDL 2.0 drawing primitives to draw a figure; an example is illustrated in
Figure ?? showing a target and arrow shaft. These draw function primitives include:
SDL RenderDrawLine, SDL RenderDrawPoint, and SDL RenderDrawRect. There
are examples that use these primitives in the course repository.
In addition, your program must include at least two C
++ classes: one that you write from scratch, and
one that I wrote called FrameGenerator. This latter class, FrameGenerator, is included in the project 2
directory and will generate an image in a directory called frames. You must create the frames directory
as a subdirectory of your project directory and you should supply your username in the main program (not
mine!). Both of these classes must use initialization lists and your class must include at least one overloaded
operator. Before you compress and submit your project make sure that (1) your program creates a bmp of
your image with your user name, and that you have used make clean in your project directory.
In using the SDL functions, your figure must include:
1. Usage of each primitive at least once,
2. at least 7 distinct lines or shapes, and
3. at least 3 colors.
1