Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -3169,11 +3169,14 @@ public: · 3168 unmodified lines | ||
| 3169 | 3169 | |
| 3170 | 3170 | }; |
| 3171 | 3171 | |
| 3172 | −template <> const render::ItemKey render::payloadGetKey(const MyFirstStuff::Pointer& stuff) { return ItemKey::Builder::opaqueShape(); } | |
| 3173 | −template <> const render::Item::Bound render::payloadGetBound(const MyFirstStuff::Pointer& stuff) { return Item::Bound(); } | |
| 3174 | −template <> void render::payloadRender(const MyFirstStuff::Pointer& stuff, RenderArgs* args) { | |
| 3175 | − if (args) { | |
| 3176 | − args->_elementsTouched ++; | |
| 3172 | +// For Ubuntu, the compiler want's the Payload's functions to be specialized in the "render" namespace explicitely... | |
| 3173 | +namespace render { | |
| 3174 | + template <> const ItemKey payloadGetKey(const MyFirstStuff::Pointer& stuff) { return ItemKey::Builder::opaqueShape(); } | |
| 3175 | + template <> const Item::Bound payloadGetBound(const MyFirstStuff::Pointer& stuff) { return Item::Bound(); } | |
| 3176 | + template <> void payloadRender(const MyFirstStuff::Pointer& stuff, RenderArgs* args) { | |
| 3177 | + if (args) { | |
| 3178 | + args->_elementsTouched ++; | |
| 3179 | + } | |
| 3177 | 3180 | } |
| 3178 | 3181 | } |
| 3179 | 3182 | |