File: Grid.h

package info (click to toggle)
pinball 0.3.20201218-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 8,452 kB
  • sloc: cpp: 15,230; makefile: 840; sh: 381; xml: 24
file content (39 lines) | stat: -rw-r--r-- 1,193 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/***************************************************************************
                          Grid.h  -  description
                             -------------------
    begin                : Tue Feb 8 2000
    copyright            : (C) 2000 by Henrik Enqvist
    email                : henqvist@excite.com
 ***************************************************************************/

#ifndef GRID_H
#define GRID_H

#include "Shape3D.h"

/** A simple grid. @see Shape3D */
class Grid : public Shape3D {
	public:
	  /**
	   * <p>Grid(Texture, SizeForEachStepX, SizeForEachStepY, Steps, SizeForEachBitmapStep, 
		 * r, g, b, a)</p>
	   * <pre>
	   *
	   *  v-sizex-v            Steps=3
	   *  ----------------------
	   *  |      |      |      |
	   *  |      |      |      |
	   *  ---------------------- <
	   *  |      |      |      | | sizey
	   *  |      |      |      | |
	   *  ---------------------- <
	   *  |      |      |      |
	   *  |      |      |      |
	   *  ---------------------- Steps=3
	   * </pre>
	   */
		Grid(EmTexture*, float sizex, float sizey, int steps, float bmStep,  
				 float fR=1.0, float fG=1.0, float fB=1.0, float fA=1.0);
};

#endif // GRID_H