nmpp
iCellTexture.h
1//------------------------------------------------------------------------
2//
3// $Workfile:: CellTexture.h $
4//
5// <Название библиотеки>
6//
7// Copyright (c) RC Module Inc.
8//
9// $Revision: 1.1 $ $Date: 2005/02/10 12:36:38 $
10//
19//------------------------------------------------------------------------
20#ifndef __CELLTEXTURE_H
21#define __CELLTEXTURE_H
22
23
24//Класс определяет точку на плоскости
25class RPoint {
26 public:
27 double x;
28 double y;
29
30
31 //virtual ~RPoint() {};
32
33
34 RPoint() : x(0), y(0)
35 {
36 }
37
38 RPoint(const RPoint &p) : x(p.x), y(p.y)
39 {
40 }
41
42 RPoint (double _x, double _y) :x(_x), y(_y)
43 {
44 }
45
46 RPoint &operator= (const RPoint &p)
47 {
48 x = p.x; y = p.y;
49 return (*this);
50 }
51
52
53};
54
55
56
57
85void nmppiCreateCellTexture(unsigned char *texture_img, int width, int height);
86void nmppiCreateRandomCellTexture(unsigned char *texture_img, int width, int height);
87void nmppiCreateComplexTexture(unsigned char *texture_img, int width, int height);
89
90
110//int PointInRectangle(RPoint& p, RPoint *borders);
112
113#endif
Definition: iCellTexture.h:25