This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:community:sergeig:shadercoordinates [2015/10/28 19:27 (9 years ago)] – ↷ Page moved from en:orx:tutorials:community:sergeig:shadercoordinates to tutorials:community:sergeig:shadercoordinates sausage | en:tutorials:shaders:shadercoordinates [2020/08/31 07:11 (4 years ago)] (current) – ↷ Page moved from en:tutorials:community:sergeig:shadercoordinates to en:tutorials:shaders:shadercoordinates sausage | ||
---|---|---|---|
Line 15: | Line 15: | ||
The following screenshot demonstrates the final application look on Mac OS X: | The following screenshot demonstrates the final application look on Mac OS X: | ||
- | {{shadercoordscreenshot.png}} | + | {{tutorials: |
On the screenshot you can see a red rectangular dot. It indicates the position of the mouse cursor at the moment of taking the screenshot. | On the screenshot you can see a red rectangular dot. It indicates the position of the mouse cursor at the moment of taking the screenshot. | ||
- | ===== Code Behind ===== | ||
- | |||
- | The source code uses standard setup with main and WinMain entry point functions for different operating systems. Both entry points configure orx engine with references to Init and Run functions. | ||
==== Init function ==== | ==== Init function ==== | ||
Line 308: | Line 305: | ||
} | } | ||
- | |||
- | #ifdef __orxMSVC__ | ||
- | |||
- | // Here's an example for a console-less program under windows with visual studio | ||
- | int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, | ||
- | { | ||
- | // Inits and executes orx | ||
- | orx_WinExecute(Init, | ||
- | | ||
- | // Done! | ||
- | return EXIT_SUCCESS; | ||
- | } | ||
- | |||
- | #endif // __orxMSVC__ | ||
</ | </ |