Adding APIs for size and set pixel.
8 /* Cmake will define MyLibrary_EXPORTS on Windows when it
9 configures to build a shared library. If you are going to use
10 another build system on windows or create the visual studio
11 projects by hand you need to define MyLibrary_EXPORTS when
12 building a DLL on windows.
14 // We are using the Visual Studio Compiler and building Shared libraries
17 #if defined(MiniDisplay_EXPORTS)
18 #define MDAPI __declspec(dllexport)
20 #define MDAPI __declspec(dllimport)
21 #endif /* MyLibrary_EXPORTS */
22 #else /* defined (_WIN32) */
26 typedef void* MiniDisplayDevice;
28 //Open & Close functions
29 extern "C" MDAPI MiniDisplayDevice MiniDisplayOpen();
30 extern "C" MDAPI void MiniDisplayClose(MiniDisplayDevice aDevice);
33 Clear our MiniDisplay.
34 @param [IN] The device to apply this command to.
36 extern "C" MDAPI void MiniDisplayClear(MiniDisplayDevice aDevice);
40 @param [IN] The device to apply this command to.
42 extern "C" MDAPI void MiniDisplayFill(MiniDisplayDevice aDevice);
45 Swap our MiniDisplay buffers committing our back buffer content to the screen.
46 @param [IN] The device to apply this command to.
48 extern "C" MDAPI void MiniDisplaySwapBuffers(MiniDisplayDevice aDevice);
51 Provide maximum brightness level for the given device.
52 @param [IN] The device to apply this command to.
53 @return Maximum brightness level.
55 extern "C" MDAPI int MiniDisplayMaxBrightness(MiniDisplayDevice aDevice);
58 Provide minimum brightness level for the given device.
59 @param [IN] The device to apply this command to.
60 @return Minimum brightness level.
62 extern "C" MDAPI int MiniDisplayMinBrightness(MiniDisplayDevice aDevice);
65 Set device brightness level.
66 @param [IN] The device to apply this command to.
67 @param [IN] Brightness level
69 extern "C" MDAPI void MiniDisplaySetBrightness(MiniDisplayDevice aDevice, int aBrightness);
72 Provide pixels width of our display.
73 @param [IN] The device to apply this command to.
74 @return Width in pixels.
76 extern "C" MDAPI int MiniDisplayWidthInPixels(MiniDisplayDevice aDevice);
79 Provide pixels height of our display.
80 @param [IN] The device to apply this command to.
81 @return Height in pixels.
83 extern "C" MDAPI int MiniDisplayHeightInPixels(MiniDisplayDevice aDevice);
87 @param [IN] The device to apply this command to.
88 @param [IN] Pixel X coordinate.
89 @param [IN] Pixel Y coordinate.
90 @param [IN] Pixel value.
92 extern "C" MDAPI void MiniDisplaySetPixel(MiniDisplayDevice aDevice, int aX, int aY, int aValue);
94 //TODO: Have an API to specify pixel depth