CamSurface - Camera as a surface!
Category: Extensions
Price:
Modules: Android
Description:
Purchase this asset on Itch.io to support the developer
Use the front or back camera as a native Gamemaker surface in your games and applications!
DOWNLOAD A DEMO APK
- Landscape and portrait camera mode
- Turn the flashlight on and off during preview
- High speed access to the colour data from the camera (could be used for tracking and detection etc.)
Easy to set up and implement (working demo is included). Call the following function to start the camera preview:
Code:
camsurface_start(CAMSURFACE_PORTRAIT,CAMSURFACE_CAM_BACK,640,480);
//camsurface_start(portrait|landscape,front|back,width,height);
Code:
camsurface_draw(x,y[width,height])
// --- OR --- //
var surface = camsurface_get_surface();
if (surface_exists(s)) {
draw_surface(surface, x, y);
}
Need an Android extension or SDK Implementation?
Last edited: