Mercurial > fife-parpg
comparison engine/core/view/camera.i @ 0:4a0efb7baf70
* Datasets becomes the new trunk and retires after that :-)
author | mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sun, 29 Jun 2008 18:44:17 +0000 |
parents | |
children | 40a7c9618ade |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4a0efb7baf70 |
---|---|
1 %module fife | |
2 %{ | |
3 #include "view/camera.h" | |
4 #include "view/rendererbase.h" | |
5 %} | |
6 | |
7 %include "view/rendererbase.i" | |
8 | |
9 namespace FIFE { | |
10 typedef Point3D ScreenPoint; | |
11 %template(ScreenPoint) PointType3D<int>; | |
12 | |
13 %apply std::list<Instance*> &OUTPUT { std::list<Instance*>& instances }; | |
14 class Camera: public IRendererContainer { | |
15 public: | |
16 ~Camera(); | |
17 const std::string& getId(); | |
18 void setTilt(double tilt); | |
19 double getTilt() const; | |
20 void setRotation(double rotation); | |
21 double getRotation() const; | |
22 void setZoom(double zoom); | |
23 double getZoom() const; | |
24 void setLocation(Location location); | |
25 Location getLocation() const; | |
26 Location& getLocationRef(); | |
27 void attach(Instance *instance); | |
28 void detach(); | |
29 Instance* getAttached() const; | |
30 void setViewPort(const Rect& viewport); | |
31 const Rect& getViewPort() const; | |
32 void setCellImageDimensions(unsigned int width, unsigned int height); | |
33 Point getCellImageDimensions(); | |
34 ScreenPoint toScreenCoordinates(ExactModelCoordinate map_coords); | |
35 ExactModelCoordinate toMapCoordinates(ScreenPoint screen_coords, bool z_calculated=true); | |
36 void setEnabled(bool enabled); | |
37 bool isEnabled(); | |
38 | |
39 void getMatchingInstances(ScreenPoint screen_coords, Layer& layer, std::list<Instance*>& instances); | |
40 void getMatchingInstances(Location& loc, std::list<Instance*>& instances, bool use_exactcoordinates=false); | |
41 RendererBase* getRenderer(const std::string& name); | |
42 void resetRenderers(); | |
43 | |
44 void refresh(); | |
45 private: | |
46 Camera(); | |
47 }; | |
48 %clear std::list<Instance*>& instances; | |
49 } | |
50 | |
51 %clear InstanceLst& instances; |