29 * This can be overlaid by an additional layer providing the actual |
29 * This can be overlaid by an additional layer providing the actual |
30 * API for different languages; for the JSR184 API, this is the Java |
30 * API for different languages; for the JSR184 API, this is the Java |
31 * binding layer. |
31 * binding layer. |
32 */ |
32 */ |
33 |
33 |
34 #if defined (__ARMCC_2_2__) |
34 #if (__ARMCC_VERSION >= 220000) |
35 # define M3G_API __declspec(dllimport) |
35 # if defined(M3G_BUILD_DLL) |
36 #endif |
36 # define M3G_API __declspec(dllexport) |
37 |
37 # else |
38 #if defined(M3G_BUILD_DLL) |
38 # define M3G_API __declspec(dllimport) |
39 # define M3G_API __declspec(dllexport) |
39 # endif |
40 #endif |
40 #else |
41 |
41 # if defined(M3G_BUILD_DLL) |
42 #if !defined(M3G_API) |
42 # define M3G_API __declspec(dllexport) |
43 # define M3G_API |
43 # else |
|
44 # define M3G_API |
|
45 # endif |
44 #endif |
46 #endif |
45 |
47 |
46 /*---------------------------------------------------------------------- |
48 /*---------------------------------------------------------------------- |
47 * Enumerated constants |
49 * Enumerated constants |
48 *--------------------------------------------------------------------*/ |
50 *--------------------------------------------------------------------*/ |
914 M3G_API M3GLight m3gGetLightTransform (M3GRenderContext hCtx, M3Gint lightIndex, M3GMatrix *transform); |
916 M3G_API M3GLight m3gGetLightTransform (M3GRenderContext hCtx, M3Gint lightIndex, M3GMatrix *transform); |
915 M3G_API M3Gsizei m3gGetLightCount (M3GRenderContext hCtx); |
917 M3G_API M3Gsizei m3gGetLightCount (M3GRenderContext hCtx); |
916 M3G_API M3GCamera m3gGetCamera (M3GRenderContext hCtx); |
918 M3G_API M3GCamera m3gGetCamera (M3GRenderContext hCtx); |
917 M3G_API void m3gSetAlphaWrite (M3GRenderContext ctx, M3Gbool enable); |
919 M3G_API void m3gSetAlphaWrite (M3GRenderContext ctx, M3Gbool enable); |
918 M3G_API M3Gbool m3gGetAlphaWrite (M3GRenderContext ctx); |
920 M3G_API M3Gbool m3gGetAlphaWrite (M3GRenderContext ctx); |
919 |
921 M3G_API void m3gFreeGLESResources (M3GRenderContext ctx); |
920 |
922 |
921 /* -------- SkinnedMesh -------- */ |
923 /* -------- SkinnedMesh -------- */ |
922 |
924 |
923 M3G_API M3GSkinnedMesh m3gCreateSkinnedMesh (M3GInterface hInterface, M3GVertexBuffer hVertices, M3GIndexBuffer *hTriangles, M3GAppearance *hAppearances, M3Gint trianglePatchCount, M3GGroup hSkeleton); |
925 M3G_API M3GSkinnedMesh m3gCreateSkinnedMesh (M3GInterface hInterface, M3GVertexBuffer hVertices, M3GIndexBuffer *hTriangles, M3GAppearance *hAppearances, M3Gint trianglePatchCount, M3GGroup hSkeleton); |
924 M3G_API void m3gAddTransform (M3GSkinnedMesh handle, M3GNode hBone, M3Gint weight, M3Gint firstVertex, M3Gint numVertices); |
926 M3G_API void m3gAddTransform (M3GSkinnedMesh handle, M3GNode hBone, M3Gint weight, M3Gint firstVertex, M3Gint numVertices); |