All Classes |Grouped Classes |Index

Function draw_pixels

Draw pixels.

	void CL_GraphicContext::draw_pixels(
		float x,
		float y,
		const CL_PixelBuffer & pixel_buffer,
		const CL_Rect & src_rect,
		const CL_Colorf & color = CL_Colorf::white );

	void CL_GraphicContext::draw_pixels(
		float x,
		float y,
		float zoom_x,
		float zoom_y,
		const CL_PixelBuffer & pixel_buffer,
		const CL_Rect & src_rect,
		const CL_Colorf & color = CL_Colorf::white );

Detailed description:

Note, For OpenGL targets this is slow. Consider drawing a texture with a pixelbuffer object (created via CL_PixelBuffer(gc, ...) )