\hypertarget{group__Evas__Object__Group__Map}{}\section{U\+V Mapping (Rotation, Perspective, 3\+D...)}
\label{group__Evas__Object__Group__Map}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}


Evas allows different transformations to be applied to all kinds of objects.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{group__Evas__Object__Group__Map_gaea5fa874b56c188ed001f38ad1d05d7d}{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object\+\_\+full} (\hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m, const \hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$obj, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} z)
\begin{DoxyCompactList}\small\item\em Populate source and destination map points to match exactly object. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Group__Map_gaa21f5c7338fbb125b8e50890b3fefb91}{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object} (\hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m, const \hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Populate source and destination map points to match exactly object. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Group__Map_ga535ba6d2e0d57f0854c201507a74826e}{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+geometry} (\hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} x, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} y, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} w, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} h, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} z)
\begin{DoxyCompactList}\small\item\em Populate source and destination map points to match given geometry. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Group__Map_gafad0e4df4fcd8258fff8c1c1b41c6671}{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+color\+\_\+set} (\hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m, int r, int g, int b, int a)
\begin{DoxyCompactList}\small\item\em Set color of all points to given color. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Group__Map_ga0db530bdf4f619b3c9c4c74c3e87ccac}{evas\+\_\+map\+\_\+util\+\_\+rotate} (\hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m, double degrees, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} cx, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} cy)
\begin{DoxyCompactList}\small\item\em Change the map to apply the given rotation. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Group__Map_ga733ebf337f12735e01f23fd78835be75}{evas\+\_\+map\+\_\+util\+\_\+zoom} (\hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m, double zoomx, double zoomy, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} cx, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} cy)
\begin{DoxyCompactList}\small\item\em Change the map to apply the given zooming. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Group__Map_ga8ec45ba806d347d313556b0d5c5330c8}{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+rotate} (\hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m, double dx, double dy, double dz, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} cx, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} cy, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} cz)
\begin{DoxyCompactList}\small\item\em Rotate the map around 3 axes in 3\+D. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Group__Map_ga2095fdb6ae2d2bf3548dbd7b137f139a}{evas\+\_\+map\+\_\+util\+\_\+quat\+\_\+rotate} (\hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m, double qx, double qy, double qz, double qw, double cx, double cy, double cz)
\begin{DoxyCompactList}\small\item\em Rotate the map in 3\+D using a unit quaternion. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Group__Map_gaffb11ebe4dfd914f97cdde7e9f713c97}{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+lighting} (\hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} lx, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} ly, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} lz, int lr, int lg, int lb, int ar, int ag, int ab)
\begin{DoxyCompactList}\small\item\em Perform lighting calculations on the given Map. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Group__Map_ga2d28d92f2189d8ec098c6dd29da6cdca}{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+perspective} (\hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} px, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} py, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} z0, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} foc)
\begin{DoxyCompactList}\small\item\em Apply a perspective transform to the map. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Evas__Object__Group__Map_gaf9b0303984e52012014bdade3e8f2ad0}{evas\+\_\+map\+\_\+util\+\_\+clockwise\+\_\+get} (\hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m)
\begin{DoxyCompactList}\small\item\em Get the clockwise state of a map. \end{DoxyCompactList}\item 
\hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$ \hyperlink{group__Evas__Object__Group__Map_ga68a1a6d2dfdd5c9d88a9200eb78cca4e}{evas\+\_\+map\+\_\+new} (int count)
\begin{DoxyCompactList}\small\item\em Create map of transformation points to be later used with an Evas object. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Group__Map_gab8575043030c84cd457419e33775d884}{evas\+\_\+map\+\_\+smooth\+\_\+set} (\hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m, \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} enabled)
\begin{DoxyCompactList}\small\item\em Set the smoothing for map rendering. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Evas__Object__Group__Map_ga705d25b3f5aa9a5a0b4f112576933893}{evas\+\_\+map\+\_\+smooth\+\_\+get} (const \hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m)
\begin{DoxyCompactList}\small\item\em Get the smoothing for map rendering. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Group__Map_gac40eaffef33cb5a9afe362c9e7759cae}{evas\+\_\+map\+\_\+alpha\+\_\+set} (\hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m, \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} enabled)
\begin{DoxyCompactList}\small\item\em Set the alpha flag for map rendering. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Evas__Object__Group__Map_gae63cd03fb159837d36960dbbbd070b9b}{evas\+\_\+map\+\_\+alpha\+\_\+get} (const \hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m)
\begin{DoxyCompactList}\small\item\em Get the alpha flag for map rendering. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Group__Map_gac2afb36cf3fd24ec4d9082fad800b9fb}{evas\+\_\+map\+\_\+util\+\_\+object\+\_\+move\+\_\+sync\+\_\+set} (\hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m, \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} enabled)
\begin{DoxyCompactList}\small\item\em Set the flag of the object move synchronization for map rendering. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Evas__Object__Group__Map_gaa43ef30df411a28e7f8b0160384f6c32}{evas\+\_\+map\+\_\+util\+\_\+object\+\_\+move\+\_\+sync\+\_\+get} (const \hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m)
\begin{DoxyCompactList}\small\item\em Get the flag of the object move synchronization for map rendering. \end{DoxyCompactList}\item 
\hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$ \hyperlink{group__Evas__Object__Group__Map_gad93200ad44041b2ef049b45212b1b716}{evas\+\_\+map\+\_\+dup} (const \hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m)
\begin{DoxyCompactList}\small\item\em Copy a previously allocated map. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Group__Map_gab3e18d6086e352b121a57c130041bb24}{evas\+\_\+map\+\_\+free} (\hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m)
\begin{DoxyCompactList}\small\item\em Free a previously allocated map. \end{DoxyCompactList}\item 
int \hyperlink{group__Evas__Object__Group__Map_gae356aae5e2949c26f1b32ba0b2cddd8f}{evas\+\_\+map\+\_\+count\+\_\+get} (const \hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m)
\begin{DoxyCompactList}\small\item\em Get a maps size. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Group__Map_ga46ab921df9fe617d6c241056784217b7}{evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+set} (\hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m, int idx, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} x, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} y, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} z)
\begin{DoxyCompactList}\small\item\em Change the map point\textquotesingle{}s coordinate. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Group__Map_ga87812b35a91cec3ad383f7ed47d86027}{evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+get} (const \hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m, int idx, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} $\ast$x, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} $\ast$y, \hyperlink{group__Evas_ga2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord} $\ast$z)
\begin{DoxyCompactList}\small\item\em Get the map point\textquotesingle{}s coordinate. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}{evas\+\_\+map\+\_\+point\+\_\+image\+\_\+uv\+\_\+set} (\hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m, int idx, double u, double v)
\begin{DoxyCompactList}\small\item\em Change the map point\textquotesingle{}s U and V texture source point. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Group__Map_ga8949b9b334eeaa205c2fb49f152cd860}{evas\+\_\+map\+\_\+point\+\_\+image\+\_\+uv\+\_\+get} (const \hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m, int idx, double $\ast$u, double $\ast$v)
\begin{DoxyCompactList}\small\item\em Get the map point\textquotesingle{}s U and V texture source points. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Group__Map_ga2ba9f77377f7cc1a79deecb938c8289c}{evas\+\_\+map\+\_\+point\+\_\+color\+\_\+set} (\hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m, int idx, int r, int g, int b, int a)
\begin{DoxyCompactList}\small\item\em Set the color of a vertex in the map. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Group__Map_gacf58493e2ef04056b40a023740344cca}{evas\+\_\+map\+\_\+point\+\_\+color\+\_\+get} (const \hyperlink{group__Evas_gacbda626e8d8bf52e7e3146d26d8153a7}{Evas\+\_\+\+Map} $\ast$m, int idx, int $\ast$r, int $\ast$g, int $\ast$b, int $\ast$a)
\begin{DoxyCompactList}\small\item\em Get the color set on a vertex in the map. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Evas allows different transformations to be applied to all kinds of objects. 

These are applied by means of U\+V mapping.

With U\+V mapping, one maps points in the source object to a 3\+D space positioning at target. This allows rotation, perspective, scale and lots of other effects, depending on the map that is used.

Each map point may carry a multiplier color. If properly calculated, these can do shading effects on the object, producing 3\+D effects.

As usual, Evas provides both the raw and easy to use methods. The raw methods allow developers to create their maps somewhere else, possibly loading them from some file format. The easy to use methods calculate the points given some high-\/level parameters such as rotation angle, ambient light, and so on.

\begin{DoxyNote}{Note}
applying mapping will reduce performance, so use with care. The impact on performance depends on engine in use. Software is quite optimized, but not as fast as Open\+G\+L.
\end{DoxyNote}
\hypertarget{group__Evas__Object__Group__Map_sec-map-points}{}\subsection{Map points}\label{group__Evas__Object__Group__Map_sec-map-points}
\hypertarget{group__Evas__Object__Group__Map_subsec-rotation}{}\subsubsection{Rotation}\label{group__Evas__Object__Group__Map_subsec-rotation}
A map consists of a set of points, currently only four are supported. Each of these points contains a set of canvas coordinates {\ttfamily x} and {\ttfamily y} that can be used to alter the geometry of the mapped object, and a {\ttfamily z} coordinate that indicates the depth of that point. This last coordinate does not normally affect the map, but it\textquotesingle{}s used by several of the utility functions to calculate the right position of the point given other parameters.

The coordinates for each point are set with \hyperlink{group__Evas__Object__Group__Map_ga46ab921df9fe617d6c241056784217b7}{evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+set()}. The following image shows a map set to match the geometry of an existing object.

  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-set-map-points-1}}
\end{DoxyImageNoCaption}


This is a common practice, so there are a few functions that help make it easier.

\hyperlink{group__Evas__Object__Group__Map_ga535ba6d2e0d57f0854c201507a74826e}{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+geometry()} sets the coordinates of each point in the given map to match the rectangle defined by the function parameters.

\hyperlink{group__Evas__Object__Group__Map_gaa21f5c7338fbb125b8e50890b3fefb91}{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object()} and \hyperlink{group__Evas__Object__Group__Map_gaea5fa874b56c188ed001f38ad1d05d7d}{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object\+\_\+full()} both take an object and set the map points to match its geometry. The difference between the two is that the first function sets the {\ttfamily z} value of all points to 0, while the latter receives the value to set in said coordinate as a parameter.

The following lines of code all produce the same result as in the image above. 
\begin{DoxyCode}
\hyperlink{group__Evas__Object__Group__Map_ga535ba6d2e0d57f0854c201507a74826e}{evas\_map\_util\_points\_populate\_from\_geometry}(m, 100, 100, 200, 20
      0, 0);
\textcolor{comment}{// Assuming o is our original object}
\hyperlink{group__Evas__Font__Group_ga02da8091bbac768b8e86c7b74b2a94f9}{evas\_object\_move}(o, 100, 100);
\hyperlink{group__Evas__Font__Group_ga21e8604c0e4a93e469bff4bd069e82b5}{evas\_object\_resize}(o, 200, 200);
\hyperlink{group__Evas__Object__Group__Map_gaa21f5c7338fbb125b8e50890b3fefb91}{evas\_map\_util\_points\_populate\_from\_object}(m, o);
\hyperlink{group__Evas__Object__Group__Map_gaea5fa874b56c188ed001f38ad1d05d7d}{evas\_map\_util\_points\_populate\_from\_object\_full}(m, o, 0);
\end{DoxyCode}


Several effects can be applied to an object by simply setting each point of the map to the right coordinates. For example, a simulated perspective could be achieve as follows.

  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-set-map-points-2}}
\end{DoxyImageNoCaption}


As said before, the {\ttfamily z} coordinate is unused here so when setting points by hand, its value is of no importance.

  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-set-map-points-3}}
\end{DoxyImageNoCaption}


In all three cases above, setting the map to be used by the object is the same. 
\begin{DoxyCode}
evas\_object\_map\_set(o, m);
evas\_object\_map\_enable\_set(o, \hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE});
\end{DoxyCode}


Doing things this way, however, is a lot of work that can be avoided by using the provided utility functions, as described in the next section.\hypertarget{group__Evas__Object__Group__Map_map-utils}{}\subsection{Utility functions}\label{group__Evas__Object__Group__Map_map-utils}
Utility functions take an already set up map and alter it to produce a specific effect. For example, to rotate an object around its own center you would need to take the rotation angle, the coordinates of each corner of the object and do all the math to get the new set of coordinates that need to be set in the map.

Or you can use this code\+: 
\begin{DoxyCode}
\hyperlink{group__Evas__Object__Group__Basic_ga6f52fab1a96dc58c85ee481d84bac871}{evas\_object\_geometry\_get}(o, &x, &y, &w, &h);
m = \hyperlink{group__Evas__Object__Group__Map_ga68a1a6d2dfdd5c9d88a9200eb78cca4e}{evas\_map\_new}(4);
\hyperlink{group__Evas__Object__Group__Map_gaa21f5c7338fbb125b8e50890b3fefb91}{evas\_map\_util\_points\_populate\_from\_object}(m, o);
\hyperlink{group__Evas__Object__Group__Map_ga0db530bdf4f619b3c9c4c74c3e87ccac}{evas\_map\_util\_rotate}(m, 45, x + (w / 2), y + (h / 2));
evas\_object\_map\_set(o, m);
evas\_object\_map\_enable\_set(o, \hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE});
\hyperlink{group__Evas__Object__Group__Map_gab3e18d6086e352b121a57c130041bb24}{evas\_map\_free}(m);
\end{DoxyCode}


Which will rotate the object around its center point in a 45 degree angle in the clockwise direction, taking it from this

  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-rotation-2d-1}}
\end{DoxyImageNoCaption}


to this

  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-rotation-2d-2}}
\end{DoxyImageNoCaption}


Objects may be rotated around any other point just by setting the last two paramaters of the \hyperlink{group__Evas__Object__Group__Map_ga0db530bdf4f619b3c9c4c74c3e87ccac}{evas\+\_\+map\+\_\+util\+\_\+rotate()} function to the right values. A circle of roughly the diameter of the object overlaid on each image shows where the center of rotation is set for each example.

For example, this code 
\begin{DoxyCode}
\hyperlink{group__Evas__Object__Group__Basic_ga6f52fab1a96dc58c85ee481d84bac871}{evas\_object\_geometry\_get}(o, &x, &y, &w, &h);
m = \hyperlink{group__Evas__Object__Group__Map_ga68a1a6d2dfdd5c9d88a9200eb78cca4e}{evas\_map\_new}(4);
\hyperlink{group__Evas__Object__Group__Map_gaa21f5c7338fbb125b8e50890b3fefb91}{evas\_map\_util\_points\_populate\_from\_object}(m, o);
\hyperlink{group__Evas__Object__Group__Map_ga0db530bdf4f619b3c9c4c74c3e87ccac}{evas\_map\_util\_rotate}(m, 45, x + w - 20, y + h - 20);
evas\_object\_map\_set(o, m);
evas\_object\_map\_enable\_set(o, \hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE});
\hyperlink{group__Evas__Object__Group__Map_gab3e18d6086e352b121a57c130041bb24}{evas\_map\_free}(m);
\end{DoxyCode}


produces something like

  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-rotation-2d-3}}
\end{DoxyImageNoCaption}


And the following 
\begin{DoxyCode}
\hyperlink{group__Evas__Canvas_gab2bf31509c58449bc94473f81b1e5ed5}{evas\_output\_size\_get}(evas, &w, &h);
m = \hyperlink{group__Evas__Object__Group__Map_ga68a1a6d2dfdd5c9d88a9200eb78cca4e}{evas\_map\_new}(4);
\hyperlink{group__Evas__Object__Group__Map_gaa21f5c7338fbb125b8e50890b3fefb91}{evas\_map\_util\_points\_populate\_from\_object}(m, o);
\hyperlink{group__Evas__Object__Group__Map_ga0db530bdf4f619b3c9c4c74c3e87ccac}{evas\_map\_util\_rotate}(m, 45, w, h);
evas\_object\_map\_set(o, m);
evas\_object\_map\_enable\_set(o, \hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE});
\hyperlink{group__Evas__Object__Group__Map_gab3e18d6086e352b121a57c130041bb24}{evas\_map\_free}(m);
\end{DoxyCode}


rotates the object around the center of the window

  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-rotation-2d-4}}
\end{DoxyImageNoCaption}
\hypertarget{group__Evas__Object__Group__Map_subsec-3d}{}\subsubsection{3\+D Maps}\label{group__Evas__Object__Group__Map_subsec-3d}
Maps can also be used to achieve the effect of 3-\/dimensionality. When doing this, the {\ttfamily z} coordinate of each point counts, with higher values meaning the point is further into the screen, and smaller values (negative, usually) meaning the point is closer towards the user.

Thinking in 3\+D also introduces the concept of back-\/face of an object. An object is said to be facing the user when all its points are placed in a clockwise fashion. The next image shows this, with each point showing the with which is identified within the map.

  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-point-order-face}}
\end{DoxyImageNoCaption}


Rotating this map around the {\ttfamily Y} axis would leave the order of the points in a counter-\/clockwise fashion, as seen in the following image.

  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-point-order-back}}
\end{DoxyImageNoCaption}


This way we can say that we are looking at the back face of the object. This will have stronger implications later when we talk about lighting.

To know if a map is facing towards the user or not it\textquotesingle{}s enough to use the \hyperlink{group__Evas__Object__Group__Map_gaf9b0303984e52012014bdade3e8f2ad0}{evas\+\_\+map\+\_\+util\+\_\+clockwise\+\_\+get()} function, but this is normally done after all the other operations are applied on the map.\hypertarget{group__Evas__Object__Group__Map_subsec-3d-rot}{}\subsubsection{3\+D rotation and perspective}\label{group__Evas__Object__Group__Map_subsec-3d-rot}
Much like \hyperlink{group__Evas__Object__Group__Map_ga0db530bdf4f619b3c9c4c74c3e87ccac}{evas\+\_\+map\+\_\+util\+\_\+rotate()}, there\textquotesingle{}s the function \hyperlink{group__Evas__Object__Group__Map_ga8ec45ba806d347d313556b0d5c5330c8}{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+rotate()} that transforms the map to apply a 3\+D rotation to an object. As in its 2\+D counterpart, the rotation can be applied around any point in the canvas, this time with a {\ttfamily z} coordinate too. The rotation can also be around any of the 3 axis.

Starting from this simple setup

  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-3d-basic-1}}
\end{DoxyImageNoCaption}


and setting maps so that the blue square to rotate on all axis around a sphere that uses the object as its center, and the red square to rotate around the {\ttfamily Y} axis, we get the following. A simple overlay over the image shows the original geometry of each object and the axis around which they are being rotated, with the {\ttfamily Z} one not appearing due to being orthogonal to the screen.

  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-3d-basic-2}}
\end{DoxyImageNoCaption}


which doesn\textquotesingle{}t look very real. This can be helped by adding perspective to the transformation, which can be simply done by calling \hyperlink{group__Evas__Object__Group__Map_ga2d28d92f2189d8ec098c6dd29da6cdca}{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+perspective()} on the map after its position has been set. The result in this case, making the vanishing point the center of each object\+:

  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-3d-basic-3}}
\end{DoxyImageNoCaption}
\hypertarget{group__Evas__Object__Group__Map_sec-color}{}\subsection{Color and lighting}\label{group__Evas__Object__Group__Map_sec-color}
Each point in a map can be set to a color, which will be multiplied with the objects own color and linearly interpolated in between adjacent points. This is done with \hyperlink{group__Evas__Object__Group__Map_ga2ba9f77377f7cc1a79deecb938c8289c}{evas\+\_\+map\+\_\+point\+\_\+color\+\_\+set()} for each point of the map, or \hyperlink{group__Evas__Object__Group__Map_gafad0e4df4fcd8258fff8c1c1b41c6671}{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+color\+\_\+set()} to set every point to the same color.

When using 3\+D effects, colors can be used to improve the looks of them by simulating a light source. The \hyperlink{group__Evas__Object__Group__Map_gaffb11ebe4dfd914f97cdde7e9f713c97}{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+lighting()} function makes this task easier by taking the coordinates of the light source and its color, along with the color of the ambient light. Evas then sets the color of each point based on the distance to the light source, the angle with which the object is facing the light and the ambient light. Here, the orientation of each point as explained before, becomes more important. If the map is defined counter-\/clockwise, the object will be facing away from the user and thus become obscured, since no light would be reflecting from it.

  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-light}}
\end{DoxyImageNoCaption}
 \begin{DoxyNote}{Note}
Object facing the light source
\end{DoxyNote}
  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-light2}}
\end{DoxyImageNoCaption}
 \begin{DoxyNote}{Note}
Same object facing away from the user
\end{DoxyNote}
\hypertarget{group__Evas__Object__Group__Map_Image}{}\subsection{mapping}\label{group__Evas__Object__Group__Map_Image}
  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-uv-mapping-1}}
\end{DoxyImageNoCaption}


Images need some special handling when mapped. Evas can easily take care of objects and do almost anything with them, but it\textquotesingle{}s completely oblivious to the content of images, so each point in the map needs to be told to what pixel in the source image it belongs. Failing to do may sometimes result in the expected behavior, or it may look like a partial work.

The next image illustrates one possibility of a map being set to an image object, without setting the right U\+V mapping for each point. The objects themselves are mapped properly to their new geometry, but the image content may not be displayed correctly within the mapped object.

  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-uv-mapping-2}}
\end{DoxyImageNoCaption}


Once Evas knows how to handle the source image within the map, it will transform it as needed. This is done with \hyperlink{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}{evas\+\_\+map\+\_\+point\+\_\+image\+\_\+uv\+\_\+set()}, which tells the map to which pixel in image it maps.

To match our example images to the maps above all we need is the size of each image, which can always be found with \hyperlink{group__Evas__Object__Image_ga6307d5c3560528d7525a6c2ed16360ed}{evas\+\_\+object\+\_\+image\+\_\+size\+\_\+get()}.


\begin{DoxyCode}
\hyperlink{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}{evas\_map\_point\_image\_uv\_set}(m, 0, 0, 0);
\hyperlink{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}{evas\_map\_point\_image\_uv\_set}(m, 1, 150, 0);
\hyperlink{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}{evas\_map\_point\_image\_uv\_set}(m, 2, 150, 200);
\hyperlink{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}{evas\_map\_point\_image\_uv\_set}(m, 3, 0, 200);
evas\_object\_map\_set(o, m);
evas\_object\_map\_enable\_set(o, \hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE});

\hyperlink{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}{evas\_map\_point\_image\_uv\_set}(m, 0, 0, 0);
\hyperlink{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}{evas\_map\_point\_image\_uv\_set}(m, 1, 120, 0);
\hyperlink{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}{evas\_map\_point\_image\_uv\_set}(m, 2, 120, 160);
\hyperlink{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}{evas\_map\_point\_image\_uv\_set}(m, 3, 0, 160);
evas\_object\_map\_set(o2, m);
evas\_object\_map\_enable\_set(o2, \hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE});
\end{DoxyCode}


To get

  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-uv-mapping-3}}
\end{DoxyImageNoCaption}


Maps can also be set to use part of an image only, or even map them inverted, and combined with evas\+\_\+object\+\_\+image\+\_\+source\+\_\+set() it can be used to achieve more interesting results.


\begin{DoxyCode}
\hyperlink{group__Evas__Object__Image_ga6307d5c3560528d7525a6c2ed16360ed}{evas\_object\_image\_size\_get}(evas\_object\_image\_source\_get(o), &w, &h);
\hyperlink{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}{evas\_map\_point\_image\_uv\_set}(m, 0, 0, h);
\hyperlink{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}{evas\_map\_point\_image\_uv\_set}(m, 1, w, h);
\hyperlink{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}{evas\_map\_point\_image\_uv\_set}(m, 2, w, h / 3);
\hyperlink{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}{evas\_map\_point\_image\_uv\_set}(m, 3, 0, h / 3);
evas\_object\_map\_set(o, m);
evas\_object\_map\_enable\_set(o, \hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE});
\end{DoxyCode}


  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-uv-mapping-4}}
\end{DoxyImageNoCaption}


Examples\+: \begin{DoxyItemize}
\item \hyperlink{Example_Evas_Map_Overview}{Evas Map -\/ Overview} \end{DoxyItemize}


\subsection{Function Documentation}
\hypertarget{group__Evas__Object__Group__Map_gaea5fa874b56c188ed001f38ad1d05d7d}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object\+\_\+full@{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object\+\_\+full}}
\index{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object\+\_\+full@{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object\+\_\+full}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object\+\_\+full(\+Evas\+\_\+\+Map $\ast$m, const Evas\+\_\+\+Object $\ast$obj, Evas\+\_\+\+Coord z)}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object\+\_\+full (
\begin{DoxyParamCaption}
\item[{{\bf Evas\+\_\+\+Map} $\ast$}]{m, }
\item[{const {\bf Evas\+\_\+\+Object} $\ast$}]{obj, }
\item[{{\bf Evas\+\_\+\+Coord}}]{z}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_gaea5fa874b56c188ed001f38ad1d05d7d}


Populate source and destination map points to match exactly object. 

Usually one initialize map of an object to match it\textquotesingle{}s original position and size, then transform these with evas\+\_\+map\+\_\+util\+\_\+$\ast$ functions, such as \hyperlink{group__Evas__Object__Group__Map_ga0db530bdf4f619b3c9c4c74c3e87ccac}{evas\+\_\+map\+\_\+util\+\_\+rotate()} or \hyperlink{group__Evas__Object__Group__Map_ga8ec45ba806d347d313556b0d5c5330c8}{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+rotate()}. The original set is done by this function, avoiding code duplication all around.


\begin{DoxyParams}{Parameters}
{\em m} & map to change all 4 points (must be of size 4). \\
\hline
{\em obj} & object to use unmapped geometry to populate map coordinates. \\
\hline
{\em z} & Point Z Coordinate hint (pre-\/perspective transform). This value will be used for all four points.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Group__Map_gaa21f5c7338fbb125b8e50890b3fefb91}{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object()} 

\hyperlink{group__Evas__Object__Group__Map_ga46ab921df9fe617d6c241056784217b7}{evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+set()} 

\hyperlink{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}{evas\+\_\+map\+\_\+point\+\_\+image\+\_\+uv\+\_\+set()} 
\end{DoxySeeAlso}


References eo\+\_\+data\+\_\+scope\+\_\+get(), and E\+R\+R.

\hypertarget{group__Evas__Object__Group__Map_gaa21f5c7338fbb125b8e50890b3fefb91}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object@{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object}}
\index{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object@{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object(\+Evas\+\_\+\+Map $\ast$m, const Evas\+\_\+\+Object $\ast$obj)}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object (
\begin{DoxyParamCaption}
\item[{{\bf Evas\+\_\+\+Map} $\ast$}]{m, }
\item[{const {\bf Evas\+\_\+\+Object} $\ast$}]{obj}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_gaa21f5c7338fbb125b8e50890b3fefb91}


Populate source and destination map points to match exactly object. 

Usually one initialize map of an object to match it\textquotesingle{}s original position and size, then transform these with evas\+\_\+map\+\_\+util\+\_\+$\ast$ functions, such as \hyperlink{group__Evas__Object__Group__Map_ga0db530bdf4f619b3c9c4c74c3e87ccac}{evas\+\_\+map\+\_\+util\+\_\+rotate()} or \hyperlink{group__Evas__Object__Group__Map_ga8ec45ba806d347d313556b0d5c5330c8}{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+rotate()}. The original set is done by this function, avoiding code duplication all around.

Z Point coordinate is assumed as 0 (zero).


\begin{DoxyParams}{Parameters}
{\em m} & map to change all 4 points (must be of size 4). \\
\hline
{\em obj} & object to use unmapped geometry to populate map coordinates.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Group__Map_gaea5fa874b56c188ed001f38ad1d05d7d}{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object\+\_\+full()} 

\hyperlink{group__Evas__Object__Group__Map_ga535ba6d2e0d57f0854c201507a74826e}{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+geometry()} 

\hyperlink{group__Evas__Object__Group__Map_ga46ab921df9fe617d6c241056784217b7}{evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+set()} 

\hyperlink{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}{evas\+\_\+map\+\_\+point\+\_\+image\+\_\+uv\+\_\+set()} 
\end{DoxySeeAlso}


References eo\+\_\+data\+\_\+scope\+\_\+get(), and E\+R\+R.

\hypertarget{group__Evas__Object__Group__Map_ga535ba6d2e0d57f0854c201507a74826e}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+geometry@{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+geometry}}
\index{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+geometry@{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+geometry}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+geometry(\+Evas\+\_\+\+Map $\ast$m, Evas\+\_\+\+Coord x, Evas\+\_\+\+Coord y, Evas\+\_\+\+Coord w, Evas\+\_\+\+Coord h, Evas\+\_\+\+Coord z)}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+geometry (
\begin{DoxyParamCaption}
\item[{{\bf Evas\+\_\+\+Map} $\ast$}]{m, }
\item[{{\bf Evas\+\_\+\+Coord}}]{x, }
\item[{{\bf Evas\+\_\+\+Coord}}]{y, }
\item[{{\bf Evas\+\_\+\+Coord}}]{w, }
\item[{{\bf Evas\+\_\+\+Coord}}]{h, }
\item[{{\bf Evas\+\_\+\+Coord}}]{z}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_ga535ba6d2e0d57f0854c201507a74826e}


Populate source and destination map points to match given geometry. 

Similar to \hyperlink{group__Evas__Object__Group__Map_gaea5fa874b56c188ed001f38ad1d05d7d}{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object\+\_\+full()}, this call takes raw values instead of querying object\textquotesingle{}s unmapped geometry. The given width will be used to calculate destination points (\hyperlink{group__Evas__Object__Group__Map_ga46ab921df9fe617d6c241056784217b7}{evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+set()}) and set the image uv (\hyperlink{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}{evas\+\_\+map\+\_\+point\+\_\+image\+\_\+uv\+\_\+set()}).


\begin{DoxyParams}{Parameters}
{\em m} & map to change all 4 points (must be of size 4). \\
\hline
{\em x} & Point X Coordinate \\
\hline
{\em y} & Point Y Coordinate \\
\hline
{\em w} & width to use to calculate second and third points. \\
\hline
{\em h} & height to use to calculate third and fourth points. \\
\hline
{\em z} & Point Z Coordinate hint (pre-\/perspective transform). This value will be used for all four points.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Group__Map_gaa21f5c7338fbb125b8e50890b3fefb91}{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object()} 

\hyperlink{group__Evas__Object__Group__Map_ga46ab921df9fe617d6c241056784217b7}{evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+set()} 

\hyperlink{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}{evas\+\_\+map\+\_\+point\+\_\+image\+\_\+uv\+\_\+set()} 
\end{DoxySeeAlso}


References E\+R\+R.

\hypertarget{group__Evas__Object__Group__Map_gafad0e4df4fcd8258fff8c1c1b41c6671}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+util\+\_\+points\+\_\+color\+\_\+set@{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+color\+\_\+set}}
\index{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+color\+\_\+set@{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+color\+\_\+set}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+color\+\_\+set(\+Evas\+\_\+\+Map $\ast$m, int r, int g, int b, int a)}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+map\+\_\+util\+\_\+points\+\_\+color\+\_\+set (
\begin{DoxyParamCaption}
\item[{{\bf Evas\+\_\+\+Map} $\ast$}]{m, }
\item[{int}]{r, }
\item[{int}]{g, }
\item[{int}]{b, }
\item[{int}]{a}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_gafad0e4df4fcd8258fff8c1c1b41c6671}


Set color of all points to given color. 

This call is useful to reuse maps after they had 3d lightning or any other colorization applied before.


\begin{DoxyParams}{Parameters}
{\em m} & map to change the color of. \\
\hline
{\em r} & red (0 -\/ 255) \\
\hline
{\em g} & green (0 -\/ 255) \\
\hline
{\em b} & blue (0 -\/ 255) \\
\hline
{\em a} & alpha (0 -\/ 255)\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Group__Map_ga2ba9f77377f7cc1a79deecb938c8289c}{evas\+\_\+map\+\_\+point\+\_\+color\+\_\+set()} 
\end{DoxySeeAlso}
\hypertarget{group__Evas__Object__Group__Map_ga0db530bdf4f619b3c9c4c74c3e87ccac}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+util\+\_\+rotate@{evas\+\_\+map\+\_\+util\+\_\+rotate}}
\index{evas\+\_\+map\+\_\+util\+\_\+rotate@{evas\+\_\+map\+\_\+util\+\_\+rotate}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+util\+\_\+rotate(\+Evas\+\_\+\+Map $\ast$m, double degrees, Evas\+\_\+\+Coord cx, Evas\+\_\+\+Coord cy)}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+map\+\_\+util\+\_\+rotate (
\begin{DoxyParamCaption}
\item[{{\bf Evas\+\_\+\+Map} $\ast$}]{m, }
\item[{double}]{degrees, }
\item[{{\bf Evas\+\_\+\+Coord}}]{cx, }
\item[{{\bf Evas\+\_\+\+Coord}}]{cy}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_ga0db530bdf4f619b3c9c4c74c3e87ccac}


Change the map to apply the given rotation. 

This rotates the indicated map\textquotesingle{}s coordinates around the center coordinate given by {\ttfamily cx} and {\ttfamily cy} as the rotation center. The points will have their X and Y coordinates rotated clockwise by {\ttfamily degrees} degrees (360.\+0 is a full rotation). Negative values for degrees will rotate counter-\/clockwise by that amount. All coordinates are canvas global coordinates.


\begin{DoxyParams}{Parameters}
{\em m} & map to change. \\
\hline
{\em degrees} & amount of degrees from 0.\+0 to 360.\+0 to rotate. \\
\hline
{\em cx} & rotation\textquotesingle{}s center horizontal position. \\
\hline
{\em cy} & rotation\textquotesingle{}s center vertical position.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Group__Map_ga46ab921df9fe617d6c241056784217b7}{evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+set()} 

\hyperlink{group__Evas__Object__Group__Map_ga733ebf337f12735e01f23fd78835be75}{evas\+\_\+map\+\_\+util\+\_\+zoom()} 
\end{DoxySeeAlso}
\hypertarget{group__Evas__Object__Group__Map_ga733ebf337f12735e01f23fd78835be75}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+util\+\_\+zoom@{evas\+\_\+map\+\_\+util\+\_\+zoom}}
\index{evas\+\_\+map\+\_\+util\+\_\+zoom@{evas\+\_\+map\+\_\+util\+\_\+zoom}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+util\+\_\+zoom(\+Evas\+\_\+\+Map $\ast$m, double zoomx, double zoomy, Evas\+\_\+\+Coord cx, Evas\+\_\+\+Coord cy)}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+map\+\_\+util\+\_\+zoom (
\begin{DoxyParamCaption}
\item[{{\bf Evas\+\_\+\+Map} $\ast$}]{m, }
\item[{double}]{zoomx, }
\item[{double}]{zoomy, }
\item[{{\bf Evas\+\_\+\+Coord}}]{cx, }
\item[{{\bf Evas\+\_\+\+Coord}}]{cy}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_ga733ebf337f12735e01f23fd78835be75}


Change the map to apply the given zooming. 

Like \hyperlink{group__Evas__Object__Group__Map_ga0db530bdf4f619b3c9c4c74c3e87ccac}{evas\+\_\+map\+\_\+util\+\_\+rotate()}, this zooms the points of the map from a center point. That center is defined by {\ttfamily cx} and {\ttfamily cy}. The {\ttfamily zoomx} and {\ttfamily zoomy} parameters specify how much to zoom in the X and Y direction respectively. A value of 1.\+0 means \char`\"{}don\textquotesingle{}t zoom\char`\"{}. 2.\+0 means \char`\"{}double the size\char`\"{}. 0.\+5 is \char`\"{}half the size\char`\"{} etc. All coordinates are canvas global coordinates.


\begin{DoxyParams}{Parameters}
{\em m} & map to change. \\
\hline
{\em zoomx} & horizontal zoom to use. \\
\hline
{\em zoomy} & vertical zoom to use. \\
\hline
{\em cx} & zooming center horizontal position. \\
\hline
{\em cy} & zooming center vertical position.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Group__Map_ga46ab921df9fe617d6c241056784217b7}{evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+set()} 

\hyperlink{group__Evas__Object__Group__Map_ga0db530bdf4f619b3c9c4c74c3e87ccac}{evas\+\_\+map\+\_\+util\+\_\+rotate()} 
\end{DoxySeeAlso}
\hypertarget{group__Evas__Object__Group__Map_ga8ec45ba806d347d313556b0d5c5330c8}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+rotate@{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+rotate}}
\index{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+rotate@{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+rotate}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+rotate(\+Evas\+\_\+\+Map $\ast$m, double dx, double dy, double dz, Evas\+\_\+\+Coord cx, Evas\+\_\+\+Coord cy, Evas\+\_\+\+Coord cz)}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+rotate (
\begin{DoxyParamCaption}
\item[{{\bf Evas\+\_\+\+Map} $\ast$}]{m, }
\item[{double}]{dx, }
\item[{double}]{dy, }
\item[{double}]{dz, }
\item[{{\bf Evas\+\_\+\+Coord}}]{cx, }
\item[{{\bf Evas\+\_\+\+Coord}}]{cy, }
\item[{{\bf Evas\+\_\+\+Coord}}]{cz}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_ga8ec45ba806d347d313556b0d5c5330c8}


Rotate the map around 3 axes in 3\+D. 

This will rotate not just around the \char`\"{}\+Z\char`\"{} axis as in \hyperlink{group__Evas__Object__Group__Map_ga0db530bdf4f619b3c9c4c74c3e87ccac}{evas\+\_\+map\+\_\+util\+\_\+rotate()} (which is a convenience call for those only wanting 2\+D). This will rotate around the X, Y and Z axes. The Z axis points \char`\"{}into\char`\"{} the screen with low values at the screen and higher values further away. The X axis runs from left to right on the screen and the Y axis from top to bottom. Like with \hyperlink{group__Evas__Object__Group__Map_ga0db530bdf4f619b3c9c4c74c3e87ccac}{evas\+\_\+map\+\_\+util\+\_\+rotate()} you provide a center point to rotate around (in 3\+D).


\begin{DoxyParams}{Parameters}
{\em m} & map to change. \\
\hline
{\em dx} & amount of degrees from 0.\+0 to 360.\+0 to rotate around X axis. \\
\hline
{\em dy} & amount of degrees from 0.\+0 to 360.\+0 to rotate around Y axis. \\
\hline
{\em dz} & amount of degrees from 0.\+0 to 360.\+0 to rotate around Z axis. \\
\hline
{\em cx} & rotation\textquotesingle{}s center horizontal position. \\
\hline
{\em cy} & rotation\textquotesingle{}s center vertical position. \\
\hline
{\em cz} & rotation\textquotesingle{}s center vertical position. \\
\hline
\end{DoxyParams}
\hypertarget{group__Evas__Object__Group__Map_ga2095fdb6ae2d2bf3548dbd7b137f139a}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+util\+\_\+quat\+\_\+rotate@{evas\+\_\+map\+\_\+util\+\_\+quat\+\_\+rotate}}
\index{evas\+\_\+map\+\_\+util\+\_\+quat\+\_\+rotate@{evas\+\_\+map\+\_\+util\+\_\+quat\+\_\+rotate}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+util\+\_\+quat\+\_\+rotate(\+Evas\+\_\+\+Map $\ast$m, double qx, double qy, double qz, double qw, double cx, double cy, double cz)}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+map\+\_\+util\+\_\+quat\+\_\+rotate (
\begin{DoxyParamCaption}
\item[{{\bf Evas\+\_\+\+Map} $\ast$}]{m, }
\item[{double}]{qx, }
\item[{double}]{qy, }
\item[{double}]{qz, }
\item[{double}]{qw, }
\item[{double}]{cx, }
\item[{double}]{cy, }
\item[{double}]{cz}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_ga2095fdb6ae2d2bf3548dbd7b137f139a}


Rotate the map in 3\+D using a unit quaternion. 

This will rotate in 3\+D using a unit quaternion. Like with \hyperlink{group__Evas__Object__Group__Map_ga8ec45ba806d347d313556b0d5c5330c8}{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+rotate()} you provide a center point to rotate around (in 3\+D).


\begin{DoxyParams}{Parameters}
{\em m} & map to change. \\
\hline
{\em qx} & the x component of the imaginary part of the quaternion. \\
\hline
{\em qy} & the y component of the imaginary part of the quaternion. \\
\hline
{\em qz} & the z component of the imaginary part of the quaternion. \\
\hline
{\em qw} & the w component of the real part of the quaternion. \\
\hline
{\em cx} & rotation\textquotesingle{}s center x. \\
\hline
{\em cy} & rotation\textquotesingle{}s center y. \\
\hline
{\em cz} & rotation\textquotesingle{}s center z.\\
\hline
\end{DoxyParams}
\begin{DoxyWarning}{Warning}
Rotations can be done using a unit quaternion. Thus, this function expects a unit quaternion (i.\+e. qx² + qy² + qz² + qw² == 1). If this is not the case the behavior is undefined.
\end{DoxyWarning}
\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}
\hypertarget{group__Evas__Object__Group__Map_gaffb11ebe4dfd914f97cdde7e9f713c97}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+lighting@{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+lighting}}
\index{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+lighting@{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+lighting}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+lighting(\+Evas\+\_\+\+Map $\ast$m, Evas\+\_\+\+Coord lx, Evas\+\_\+\+Coord ly, Evas\+\_\+\+Coord lz, int lr, int lg, int lb, int ar, int ag, int ab)}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+lighting (
\begin{DoxyParamCaption}
\item[{{\bf Evas\+\_\+\+Map} $\ast$}]{m, }
\item[{{\bf Evas\+\_\+\+Coord}}]{lx, }
\item[{{\bf Evas\+\_\+\+Coord}}]{ly, }
\item[{{\bf Evas\+\_\+\+Coord}}]{lz, }
\item[{int}]{lr, }
\item[{int}]{lg, }
\item[{int}]{lb, }
\item[{int}]{ar, }
\item[{int}]{ag, }
\item[{int}]{ab}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_gaffb11ebe4dfd914f97cdde7e9f713c97}


Perform lighting calculations on the given Map. 

This is used to apply lighting calculations (from a single light source) to a given map. The R, G and B values of each vertex will be modified to reflect the lighting based on the light point coordinates, the light color and the ambient color, and at what angle the map is facing the light source. A surface should have its points be declared in a clockwise fashion if the face is \char`\"{}facing\char`\"{} towards you (as opposed to away from you) as faces have a \char`\"{}logical\char`\"{} side for lighting.

  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-light3}}
\end{DoxyImageNoCaption}
 \begin{DoxyNote}{Note}
Grey object, no lighting used
\end{DoxyNote}
  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-light4}}
\end{DoxyImageNoCaption}
 \begin{DoxyNote}{Note}
Lights out! Every color set to 0
\end{DoxyNote}
  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-light5}}
\end{DoxyImageNoCaption}
 \begin{DoxyNote}{Note}
Ambient light to full black, red light coming from close at the bottom-\/left vertex
\end{DoxyNote}
  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-light6}}
\end{DoxyImageNoCaption}
 \begin{DoxyNote}{Note}
Same light as before, but not the light is set to 0 and ambient light is cyan
\end{DoxyNote}
  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-light7}}
\end{DoxyImageNoCaption}
 \begin{DoxyNote}{Note}
Both lights are on
\end{DoxyNote}
  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{map-light8}}
\end{DoxyImageNoCaption}
 \begin{DoxyNote}{Note}
Both lights again, but this time both are the same color.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em m} & map to change. \\
\hline
{\em lx} & X coordinate in space of light point \\
\hline
{\em ly} & Y coordinate in space of light point \\
\hline
{\em lz} & Z coordinate in space of light point \\
\hline
{\em lr} & light red value (0 -\/ 255) \\
\hline
{\em lg} & light green value (0 -\/ 255) \\
\hline
{\em lb} & light blue value (0 -\/ 255) \\
\hline
{\em ar} & ambient color red value (0 -\/ 255) \\
\hline
{\em ag} & ambient color green value (0 -\/ 255) \\
\hline
{\em ab} & ambient color blue value (0 -\/ 255) \\
\hline
\end{DoxyParams}
\hypertarget{group__Evas__Object__Group__Map_ga2d28d92f2189d8ec098c6dd29da6cdca}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+perspective@{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+perspective}}
\index{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+perspective@{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+perspective}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+perspective(\+Evas\+\_\+\+Map $\ast$m, Evas\+\_\+\+Coord px, Evas\+\_\+\+Coord py, Evas\+\_\+\+Coord z0, Evas\+\_\+\+Coord foc)}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+perspective (
\begin{DoxyParamCaption}
\item[{{\bf Evas\+\_\+\+Map} $\ast$}]{m, }
\item[{{\bf Evas\+\_\+\+Coord}}]{px, }
\item[{{\bf Evas\+\_\+\+Coord}}]{py, }
\item[{{\bf Evas\+\_\+\+Coord}}]{z0, }
\item[{{\bf Evas\+\_\+\+Coord}}]{foc}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_ga2d28d92f2189d8ec098c6dd29da6cdca}


Apply a perspective transform to the map. 

This applies a given perspective (3\+D) to the map coordinates. X, Y and Z values are used. The px and py points specify the \char`\"{}infinite distance\char`\"{} point in the 3\+D conversion (where all lines converge to like when artists draw 3\+D by hand). The {\ttfamily z0} value specifies the z value at which there is a 1\+:1 mapping between spatial coordinates and screen coordinates. Any points on this z value will not have their X and Y values modified in the transform. Those further away (Z value higher) will shrink into the distance, and those less than this value will expand and become bigger. The {\ttfamily foc} value determines the \char`\"{}focal length\char`\"{} of the camera. This is in reality the distance between the camera lens plane itself (at or closer than this rendering results are undefined) and the \char`\"{}z0\char`\"{} z value. This allows for some \char`\"{}depth\char`\"{} control and {\ttfamily foc} must be greater than 0.


\begin{DoxyParams}{Parameters}
{\em m} & map to change. \\
\hline
{\em px} & The perspective distance X coordinate \\
\hline
{\em py} & The perspective distance Y coordinate \\
\hline
{\em z0} & The \char`\"{}0\char`\"{} z plane value \\
\hline
{\em foc} & The focal distance \\
\hline
\end{DoxyParams}
\hypertarget{group__Evas__Object__Group__Map_gaf9b0303984e52012014bdade3e8f2ad0}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+util\+\_\+clockwise\+\_\+get@{evas\+\_\+map\+\_\+util\+\_\+clockwise\+\_\+get}}
\index{evas\+\_\+map\+\_\+util\+\_\+clockwise\+\_\+get@{evas\+\_\+map\+\_\+util\+\_\+clockwise\+\_\+get}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+util\+\_\+clockwise\+\_\+get(\+Evas\+\_\+\+Map $\ast$m)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Bool} evas\+\_\+map\+\_\+util\+\_\+clockwise\+\_\+get (
\begin{DoxyParamCaption}
\item[{{\bf Evas\+\_\+\+Map} $\ast$}]{m}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_gaf9b0303984e52012014bdade3e8f2ad0}


Get the clockwise state of a map. 

This determines if the output points (X and Y. Z is not used) are clockwise or counter-\/clockwise. This can be used for \char`\"{}back-\/face culling\char`\"{}. This is where you hide objects that \char`\"{}face away\char`\"{} from you. In this case objects that are not clockwise.


\begin{DoxyParams}{Parameters}
{\em m} & map to query. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
1 if clockwise, 0 otherwise 
\end{DoxyReturn}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E, and E\+I\+N\+A\+\_\+\+T\+R\+U\+E.

\hypertarget{group__Evas__Object__Group__Map_ga68a1a6d2dfdd5c9d88a9200eb78cca4e}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+new@{evas\+\_\+map\+\_\+new}}
\index{evas\+\_\+map\+\_\+new@{evas\+\_\+map\+\_\+new}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+new(int count)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Evas\+\_\+\+Map}$\ast$ evas\+\_\+map\+\_\+new (
\begin{DoxyParamCaption}
\item[{int}]{count}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_ga68a1a6d2dfdd5c9d88a9200eb78cca4e}


Create map of transformation points to be later used with an Evas object. 

This creates a set of points (currently only 4 is supported. no other number for {\ttfamily count} will work). That is empty and ready to be modified with evas\+\_\+map calls.


\begin{DoxyParams}{Parameters}
{\em count} & number of points in the map. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a newly allocated map or {\ttfamily N\+U\+L\+L} on errors.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Group__Map_gab3e18d6086e352b121a57c130041bb24}{evas\+\_\+map\+\_\+free()} 

\hyperlink{group__Evas__Object__Group__Map_gad93200ad44041b2ef049b45212b1b716}{evas\+\_\+map\+\_\+dup()} 

\hyperlink{group__Evas__Object__Group__Map_ga46ab921df9fe617d6c241056784217b7}{evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+set()} 

\hyperlink{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}{evas\+\_\+map\+\_\+point\+\_\+image\+\_\+uv\+\_\+set()} 

\hyperlink{group__Evas__Object__Group__Map_gaea5fa874b56c188ed001f38ad1d05d7d}{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object\+\_\+full()} 

\hyperlink{group__Evas__Object__Group__Map_gaa21f5c7338fbb125b8e50890b3fefb91}{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object()}

evas\+\_\+object\+\_\+map\+\_\+set() 
\end{DoxySeeAlso}


References E\+R\+R.

\hypertarget{group__Evas__Object__Group__Map_gab8575043030c84cd457419e33775d884}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+smooth\+\_\+set@{evas\+\_\+map\+\_\+smooth\+\_\+set}}
\index{evas\+\_\+map\+\_\+smooth\+\_\+set@{evas\+\_\+map\+\_\+smooth\+\_\+set}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+smooth\+\_\+set(\+Evas\+\_\+\+Map $\ast$m, Eina\+\_\+\+Bool enabled)}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+map\+\_\+smooth\+\_\+set (
\begin{DoxyParamCaption}
\item[{{\bf Evas\+\_\+\+Map} $\ast$}]{m, }
\item[{{\bf Eina\+\_\+\+Bool}}]{enabled}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_gab8575043030c84cd457419e33775d884}


Set the smoothing for map rendering. 

This sets smoothing for map rendering. If the object is a type that has its own smoothing settings, then both the smooth settings for this object and the map must be turned off. By default smooth maps are enabled.


\begin{DoxyParams}{Parameters}
{\em m} & map to modify. Must not be N\+U\+L\+L. \\
\hline
{\em enabled} & enable or disable smooth map rendering \\
\hline
\end{DoxyParams}
\hypertarget{group__Evas__Object__Group__Map_ga705d25b3f5aa9a5a0b4f112576933893}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+smooth\+\_\+get@{evas\+\_\+map\+\_\+smooth\+\_\+get}}
\index{evas\+\_\+map\+\_\+smooth\+\_\+get@{evas\+\_\+map\+\_\+smooth\+\_\+get}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+smooth\+\_\+get(const Evas\+\_\+\+Map $\ast$m)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Bool} evas\+\_\+map\+\_\+smooth\+\_\+get (
\begin{DoxyParamCaption}
\item[{const {\bf Evas\+\_\+\+Map} $\ast$}]{m}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_ga705d25b3f5aa9a5a0b4f112576933893}


Get the smoothing for map rendering. 

This gets smoothing for map rendering.


\begin{DoxyParams}{Parameters}
{\em m} & map to get the smooth from. Must not be N\+U\+L\+L. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily E\+I\+N\+A\+\_\+\+T\+R\+U\+E} if the smooth is enabled, {\ttfamily E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E} otherwise. 
\end{DoxyReturn}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E.

\hypertarget{group__Evas__Object__Group__Map_gac40eaffef33cb5a9afe362c9e7759cae}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+alpha\+\_\+set@{evas\+\_\+map\+\_\+alpha\+\_\+set}}
\index{evas\+\_\+map\+\_\+alpha\+\_\+set@{evas\+\_\+map\+\_\+alpha\+\_\+set}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+alpha\+\_\+set(\+Evas\+\_\+\+Map $\ast$m, Eina\+\_\+\+Bool enabled)}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+map\+\_\+alpha\+\_\+set (
\begin{DoxyParamCaption}
\item[{{\bf Evas\+\_\+\+Map} $\ast$}]{m, }
\item[{{\bf Eina\+\_\+\+Bool}}]{enabled}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_gac40eaffef33cb5a9afe362c9e7759cae}


Set the alpha flag for map rendering. 

This sets alpha flag for map rendering. If the object is a type that has its own alpha settings, then this will take precedence. Only image objects have this currently. Setting this off stops alpha blending of the map area, and is useful if you know the object and/or all sub-\/objects is 100\% solid.


\begin{DoxyParams}{Parameters}
{\em m} & map to modify. Must not be N\+U\+L\+L. \\
\hline
{\em enabled} & enable or disable alpha map rendering \\
\hline
\end{DoxyParams}
\hypertarget{group__Evas__Object__Group__Map_gae63cd03fb159837d36960dbbbd070b9b}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+alpha\+\_\+get@{evas\+\_\+map\+\_\+alpha\+\_\+get}}
\index{evas\+\_\+map\+\_\+alpha\+\_\+get@{evas\+\_\+map\+\_\+alpha\+\_\+get}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+alpha\+\_\+get(const Evas\+\_\+\+Map $\ast$m)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Bool} evas\+\_\+map\+\_\+alpha\+\_\+get (
\begin{DoxyParamCaption}
\item[{const {\bf Evas\+\_\+\+Map} $\ast$}]{m}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_gae63cd03fb159837d36960dbbbd070b9b}


Get the alpha flag for map rendering. 

This gets the alpha flag for map rendering.


\begin{DoxyParams}{Parameters}
{\em m} & map to get the alpha from. Must not be N\+U\+L\+L. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E if map is N\+U\+L\+L E\+I\+N\+A\+\_\+\+T\+R\+U\+E otherwise. 
\end{DoxyReturn}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E.

\hypertarget{group__Evas__Object__Group__Map_gac2afb36cf3fd24ec4d9082fad800b9fb}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+util\+\_\+object\+\_\+move\+\_\+sync\+\_\+set@{evas\+\_\+map\+\_\+util\+\_\+object\+\_\+move\+\_\+sync\+\_\+set}}
\index{evas\+\_\+map\+\_\+util\+\_\+object\+\_\+move\+\_\+sync\+\_\+set@{evas\+\_\+map\+\_\+util\+\_\+object\+\_\+move\+\_\+sync\+\_\+set}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+util\+\_\+object\+\_\+move\+\_\+sync\+\_\+set(\+Evas\+\_\+\+Map $\ast$m, Eina\+\_\+\+Bool enabled)}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+map\+\_\+util\+\_\+object\+\_\+move\+\_\+sync\+\_\+set (
\begin{DoxyParamCaption}
\item[{{\bf Evas\+\_\+\+Map} $\ast$}]{m, }
\item[{{\bf Eina\+\_\+\+Bool}}]{enabled}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_gac2afb36cf3fd24ec4d9082fad800b9fb}


Set the flag of the object move synchronization for map rendering. 

This sets the flag of the object move synchronization for map rendering. If the flag is set as enabled, the map will be moved as the object of the map is moved. By default, the flag of the object move synchronization is not enabled.


\begin{DoxyParams}{Parameters}
{\em m} & map to modify. Must not be N\+U\+L\+L. \\
\hline
{\em enabled} & enable or disable the object move synchronization for map rendering. \\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+13 
\end{DoxySince}
\hypertarget{group__Evas__Object__Group__Map_gaa43ef30df411a28e7f8b0160384f6c32}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+util\+\_\+object\+\_\+move\+\_\+sync\+\_\+get@{evas\+\_\+map\+\_\+util\+\_\+object\+\_\+move\+\_\+sync\+\_\+get}}
\index{evas\+\_\+map\+\_\+util\+\_\+object\+\_\+move\+\_\+sync\+\_\+get@{evas\+\_\+map\+\_\+util\+\_\+object\+\_\+move\+\_\+sync\+\_\+get}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+util\+\_\+object\+\_\+move\+\_\+sync\+\_\+get(const Evas\+\_\+\+Map $\ast$m)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Bool} evas\+\_\+map\+\_\+util\+\_\+object\+\_\+move\+\_\+sync\+\_\+get (
\begin{DoxyParamCaption}
\item[{const {\bf Evas\+\_\+\+Map} $\ast$}]{m}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_gaa43ef30df411a28e7f8b0160384f6c32}


Get the flag of the object move synchronization for map rendering. 

This gets the flag of the object move synchronization for map rendering.


\begin{DoxyParams}{Parameters}
{\em m} & map to get the flag of the object move synchronization from. Must not be N\+U\+L\+L. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E if map is N\+U\+L\+L E\+I\+N\+A\+\_\+\+T\+R\+U\+E otherwise. 
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+13 
\end{DoxySince}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E.

\hypertarget{group__Evas__Object__Group__Map_gad93200ad44041b2ef049b45212b1b716}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+dup@{evas\+\_\+map\+\_\+dup}}
\index{evas\+\_\+map\+\_\+dup@{evas\+\_\+map\+\_\+dup}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+dup(const Evas\+\_\+\+Map $\ast$m)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Evas\+\_\+\+Map}$\ast$ evas\+\_\+map\+\_\+dup (
\begin{DoxyParamCaption}
\item[{const {\bf Evas\+\_\+\+Map} $\ast$}]{m}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_gad93200ad44041b2ef049b45212b1b716}


Copy a previously allocated map. 

This makes a duplicate of the {\ttfamily m} object and returns it.


\begin{DoxyParams}{Parameters}
{\em m} & map to copy. Must not be N\+U\+L\+L. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
newly allocated map with the same count and contents as {\ttfamily m}. 
\end{DoxyReturn}
\hypertarget{group__Evas__Object__Group__Map_gab3e18d6086e352b121a57c130041bb24}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+free@{evas\+\_\+map\+\_\+free}}
\index{evas\+\_\+map\+\_\+free@{evas\+\_\+map\+\_\+free}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+free(\+Evas\+\_\+\+Map $\ast$m)}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+map\+\_\+free (
\begin{DoxyParamCaption}
\item[{{\bf Evas\+\_\+\+Map} $\ast$}]{m}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_gab3e18d6086e352b121a57c130041bb24}


Free a previously allocated map. 

This frees a given map {\ttfamily m} and all memory associated with it. You must N\+O\+T free a map returned by evas\+\_\+object\+\_\+map\+\_\+get() as this is internal.


\begin{DoxyParams}{Parameters}
{\em m} & map to free. \\
\hline
\end{DoxyParams}
\hypertarget{group__Evas__Object__Group__Map_gae356aae5e2949c26f1b32ba0b2cddd8f}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+count\+\_\+get@{evas\+\_\+map\+\_\+count\+\_\+get}}
\index{evas\+\_\+map\+\_\+count\+\_\+get@{evas\+\_\+map\+\_\+count\+\_\+get}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+count\+\_\+get(const Evas\+\_\+\+Map $\ast$m)}]{\setlength{\rightskip}{0pt plus 5cm}int evas\+\_\+map\+\_\+count\+\_\+get (
\begin{DoxyParamCaption}
\item[{const {\bf Evas\+\_\+\+Map} $\ast$}]{m}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_gae356aae5e2949c26f1b32ba0b2cddd8f}


Get a maps size. 

Returns the number of points in a map. Should be at least 4.


\begin{DoxyParams}{Parameters}
{\em m} & map to get size. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
-\/1 on error, points otherwise. 
\end{DoxyReturn}
\hypertarget{group__Evas__Object__Group__Map_ga46ab921df9fe617d6c241056784217b7}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+set@{evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+set}}
\index{evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+set@{evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+set}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+set(\+Evas\+\_\+\+Map $\ast$m, int idx, Evas\+\_\+\+Coord x, Evas\+\_\+\+Coord y, Evas\+\_\+\+Coord z)}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+set (
\begin{DoxyParamCaption}
\item[{{\bf Evas\+\_\+\+Map} $\ast$}]{m, }
\item[{int}]{idx, }
\item[{{\bf Evas\+\_\+\+Coord}}]{x, }
\item[{{\bf Evas\+\_\+\+Coord}}]{y, }
\item[{{\bf Evas\+\_\+\+Coord}}]{z}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_ga46ab921df9fe617d6c241056784217b7}


Change the map point\textquotesingle{}s coordinate. 

This sets the fixed point\textquotesingle{}s coordinate in the map. Note that points describe the outline of a quadrangle and are ordered either clockwise or counter-\/clockwise. It is suggested to keep your quadrangles concave and non-\/complex, though these polygon modes may work, they may not render a desired set of output. The quadrangle will use points 0 and 1 , 1 and 2, 2 and 3, and 3 and 0 to describe the edges of the quadrangle.

The X and Y and Z coordinates are in canvas units. Z is optional and may or may not be honored in drawing. Z is a hint and does not affect the X and Y rendered coordinates. It may be used for calculating fills with perspective correct rendering.

Remember all coordinates are canvas global ones like with move and resize in evas.


\begin{DoxyParams}{Parameters}
{\em m} & map to change point. Must not be {\ttfamily N\+U\+L\+L}. \\
\hline
{\em idx} & index of point to change. Must be smaller than map size. \\
\hline
{\em x} & Point X Coordinate \\
\hline
{\em y} & Point Y Coordinate \\
\hline
{\em z} & Point Z Coordinate hint (pre-\/perspective transform)\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Group__Map_ga0db530bdf4f619b3c9c4c74c3e87ccac}{evas\+\_\+map\+\_\+util\+\_\+rotate()} 

\hyperlink{group__Evas__Object__Group__Map_ga733ebf337f12735e01f23fd78835be75}{evas\+\_\+map\+\_\+util\+\_\+zoom()} 

\hyperlink{group__Evas__Object__Group__Map_gaea5fa874b56c188ed001f38ad1d05d7d}{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object\+\_\+full()} 

\hyperlink{group__Evas__Object__Group__Map_gaa21f5c7338fbb125b8e50890b3fefb91}{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object()} 
\end{DoxySeeAlso}
\hypertarget{group__Evas__Object__Group__Map_ga87812b35a91cec3ad383f7ed47d86027}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+get@{evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+get}}
\index{evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+get@{evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+get}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+get(const Evas\+\_\+\+Map $\ast$m, int idx, Evas\+\_\+\+Coord $\ast$x, Evas\+\_\+\+Coord $\ast$y, Evas\+\_\+\+Coord $\ast$z)}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+get (
\begin{DoxyParamCaption}
\item[{const {\bf Evas\+\_\+\+Map} $\ast$}]{m, }
\item[{int}]{idx, }
\item[{{\bf Evas\+\_\+\+Coord} $\ast$}]{x, }
\item[{{\bf Evas\+\_\+\+Coord} $\ast$}]{y, }
\item[{{\bf Evas\+\_\+\+Coord} $\ast$}]{z}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_ga87812b35a91cec3ad383f7ed47d86027}


Get the map point\textquotesingle{}s coordinate. 

This returns the coordinates of the given point in the map.


\begin{DoxyParams}{Parameters}
{\em m} & map to query point. \\
\hline
{\em idx} & index of point to query. Must be smaller than map size. \\
\hline
{\em x} & where to return the X coordinate. \\
\hline
{\em y} & where to return the Y coordinate. \\
\hline
{\em z} & where to return the Z coordinate. \\
\hline
\end{DoxyParams}
\hypertarget{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+point\+\_\+image\+\_\+uv\+\_\+set@{evas\+\_\+map\+\_\+point\+\_\+image\+\_\+uv\+\_\+set}}
\index{evas\+\_\+map\+\_\+point\+\_\+image\+\_\+uv\+\_\+set@{evas\+\_\+map\+\_\+point\+\_\+image\+\_\+uv\+\_\+set}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+point\+\_\+image\+\_\+uv\+\_\+set(\+Evas\+\_\+\+Map $\ast$m, int idx, double u, double v)}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+map\+\_\+point\+\_\+image\+\_\+uv\+\_\+set (
\begin{DoxyParamCaption}
\item[{{\bf Evas\+\_\+\+Map} $\ast$}]{m, }
\item[{int}]{idx, }
\item[{double}]{u, }
\item[{double}]{v}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}


Change the map point\textquotesingle{}s U and V texture source point. 

This sets the U and V coordinates for the point. This determines which coordinate in the source image is mapped to the given point, much like Open\+G\+L and textures. Notes that these points do select the pixel, but are double floating point values to allow for accuracy and sub-\/pixel selection.


\begin{DoxyParams}{Parameters}
{\em m} & map to change the point of. \\
\hline
{\em idx} & index of point to change. Must be smaller than map size. \\
\hline
{\em u} & the X coordinate within the image/texture source \\
\hline
{\em v} & the Y coordinate within the image/texture source\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Group__Map_ga46ab921df9fe617d6c241056784217b7}{evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+set()} 

evas\+\_\+object\+\_\+map\+\_\+set() 

\hyperlink{group__Evas__Object__Group__Map_gaea5fa874b56c188ed001f38ad1d05d7d}{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object\+\_\+full()} 

\hyperlink{group__Evas__Object__Group__Map_gaa21f5c7338fbb125b8e50890b3fefb91}{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+populate\+\_\+from\+\_\+object()} 
\end{DoxySeeAlso}
\hypertarget{group__Evas__Object__Group__Map_ga8949b9b334eeaa205c2fb49f152cd860}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+point\+\_\+image\+\_\+uv\+\_\+get@{evas\+\_\+map\+\_\+point\+\_\+image\+\_\+uv\+\_\+get}}
\index{evas\+\_\+map\+\_\+point\+\_\+image\+\_\+uv\+\_\+get@{evas\+\_\+map\+\_\+point\+\_\+image\+\_\+uv\+\_\+get}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+point\+\_\+image\+\_\+uv\+\_\+get(const Evas\+\_\+\+Map $\ast$m, int idx, double $\ast$u, double $\ast$v)}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+map\+\_\+point\+\_\+image\+\_\+uv\+\_\+get (
\begin{DoxyParamCaption}
\item[{const {\bf Evas\+\_\+\+Map} $\ast$}]{m, }
\item[{int}]{idx, }
\item[{double $\ast$}]{u, }
\item[{double $\ast$}]{v}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_ga8949b9b334eeaa205c2fb49f152cd860}


Get the map point\textquotesingle{}s U and V texture source points. 

This returns the texture points set by \hyperlink{group__Evas__Object__Group__Map_ga2f1b4d78f055c1752ab254a7ebce13b3}{evas\+\_\+map\+\_\+point\+\_\+image\+\_\+uv\+\_\+set()}.


\begin{DoxyParams}{Parameters}
{\em m} & map to query point. \\
\hline
{\em idx} & index of point to query. Must be smaller than map size. \\
\hline
{\em u} & where to write the X coordinate within the image/texture source \\
\hline
{\em v} & where to write the Y coordinate within the image/texture source \\
\hline
\end{DoxyParams}
\hypertarget{group__Evas__Object__Group__Map_ga2ba9f77377f7cc1a79deecb938c8289c}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+point\+\_\+color\+\_\+set@{evas\+\_\+map\+\_\+point\+\_\+color\+\_\+set}}
\index{evas\+\_\+map\+\_\+point\+\_\+color\+\_\+set@{evas\+\_\+map\+\_\+point\+\_\+color\+\_\+set}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+point\+\_\+color\+\_\+set(\+Evas\+\_\+\+Map $\ast$m, int idx, int r, int g, int b, int a)}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+map\+\_\+point\+\_\+color\+\_\+set (
\begin{DoxyParamCaption}
\item[{{\bf Evas\+\_\+\+Map} $\ast$}]{m, }
\item[{int}]{idx, }
\item[{int}]{r, }
\item[{int}]{g, }
\item[{int}]{b, }
\item[{int}]{a}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_ga2ba9f77377f7cc1a79deecb938c8289c}


Set the color of a vertex in the map. 

This sets the color of the vertex in the map. Colors will be linearly interpolated between vertex points through the map. Color will multiply the \char`\"{}texture\char`\"{} pixels (like G\+L\+\_\+\+M\+O\+D\+U\+L\+A\+T\+E in Open\+G\+L). The default color of a vertex in a map is white solid (255, 255, 255, 255) which means it will have no affect on modifying the texture pixels.


\begin{DoxyParams}{Parameters}
{\em m} & map to change the color of. \\
\hline
{\em idx} & index of point to change. Must be smaller than map size. \\
\hline
{\em r} & red (0 -\/ 255) \\
\hline
{\em g} & green (0 -\/ 255) \\
\hline
{\em b} & blue (0 -\/ 255) \\
\hline
{\em a} & alpha (0 -\/ 255)\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Group__Map_gafad0e4df4fcd8258fff8c1c1b41c6671}{evas\+\_\+map\+\_\+util\+\_\+points\+\_\+color\+\_\+set()} 

\hyperlink{group__Evas__Object__Group__Map_ga46ab921df9fe617d6c241056784217b7}{evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+set()} 

evas\+\_\+object\+\_\+map\+\_\+set() 
\end{DoxySeeAlso}
\hypertarget{group__Evas__Object__Group__Map_gacf58493e2ef04056b40a023740344cca}{}\index{U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}!evas\+\_\+map\+\_\+point\+\_\+color\+\_\+get@{evas\+\_\+map\+\_\+point\+\_\+color\+\_\+get}}
\index{evas\+\_\+map\+\_\+point\+\_\+color\+\_\+get@{evas\+\_\+map\+\_\+point\+\_\+color\+\_\+get}!U\+V Mapping (\+Rotation, Perspective, 3\+D...)@{U\+V Mapping (\+Rotation, Perspective, 3\+D...)}}
\subsubsection[{evas\+\_\+map\+\_\+point\+\_\+color\+\_\+get(const Evas\+\_\+\+Map $\ast$m, int idx, int $\ast$r, int $\ast$g, int $\ast$b, int $\ast$a)}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+map\+\_\+point\+\_\+color\+\_\+get (
\begin{DoxyParamCaption}
\item[{const {\bf Evas\+\_\+\+Map} $\ast$}]{m, }
\item[{int}]{idx, }
\item[{int $\ast$}]{r, }
\item[{int $\ast$}]{g, }
\item[{int $\ast$}]{b, }
\item[{int $\ast$}]{a}
\end{DoxyParamCaption}
)}\label{group__Evas__Object__Group__Map_gacf58493e2ef04056b40a023740344cca}


Get the color set on a vertex in the map. 

This gets the color set by \hyperlink{group__Evas__Object__Group__Map_ga2ba9f77377f7cc1a79deecb938c8289c}{evas\+\_\+map\+\_\+point\+\_\+color\+\_\+set()} on the given vertex of the map.


\begin{DoxyParams}{Parameters}
{\em m} & map to get the color of the vertex from. \\
\hline
{\em idx} & index of point get. Must be smaller than map size. \\
\hline
{\em r} & pointer to red return \\
\hline
{\em g} & pointer to green return \\
\hline
{\em b} & pointer to blue return \\
\hline
{\em a} & pointer to alpha return\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Group__Map_ga46ab921df9fe617d6c241056784217b7}{evas\+\_\+map\+\_\+point\+\_\+coord\+\_\+set()} 

evas\+\_\+object\+\_\+map\+\_\+set() 
\end{DoxySeeAlso}
