Creating a Display Driver Based on the GPE Classes (Windows CE 5.0)
Use of the GPE classes is optional but you can use the classes to reduce the amount of time required to develop a display driver.
You only need to provide the new code necessary to make your display hardware operate correctly, and then implement hardware acceleration.
To create a display driver based on the GPE classes
- Create a directory for your driver.
- Copy the files from a sample driver directories to the directory for your driver.
For example, copy the files in %_WINCEROOT%\Public\Common\Oak\Drivers\Display\ATI to the directory for your driver.
- In the copied files, replace each name that is specific to hardware with the name of your hardware.
- Modify the code that initializes and sets the mode for your hardware so the code puts the hardware in linear frame-buffer mode.
For an example of this code, see the InitializeCard and SetMode functions in the sample driver that you copied from %_WINCEROOT%\Public\Common\Oak\Drivers\Display\ATI.
- Disable all hardware-specific acceleration in the driver.
- With hardware-specific acceleration disabled, build and test this driver.
- Add code to support hardware acceleration in the driver.
Send Feedback on this topic to the authors