# raylib 6.2 adds CPU image drawing API aligned with GPU texture API

> **Key takeaway:** raylib 6.2 introduces a redesigned Image drawing API that mirrors the GPU-accelerated Texture drawing API, enabling CPU-based software rendering with matching function signatures.

**Published:** 2026-10-15T16:24:39+00:00 
**Source:** raylib Releases 
**Category:** open-gaming 
**Canonical URL:** https://fosswire.org/news/raylib-62-adds-cpu-image-drawing-api-aligned-with-gpu-textur.html 

## Summary
The C game development library raylib has released version 6.2, six months after the previous version. What began as a CMake fix expanded to over 300 changes, including 20 new API functions and a major redesign of the Image drawing API to align with the Texture API. The release also incorporates fixes from a professional security audit by Radically Open Security and standardizes File API return values to C conventions (0 for success).

## What changed in raylib 6.2
- **Image drawing API redesigned**: New `ImageDraw*()` functions mirror GPU `Draw*()` functions for CPU software rendering, including `ImageDrawPixel()`, `ImageDrawLine()`, `ImageDrawTriangle()`, `ImageDrawRectangle()`, `ImageDrawCircle()`, `ImageDrawText()`, and others
- **API alignment goal**: Image and Texture functions now use matching parameter order; `ImageDraw*()` functions take `Image *target` as first parameter
- **Future software rendering path**: Aligned API enables faster 2D CPU rendering over Image buffers, as alternative to existing `rlsw` pseudo-OpenGL 1.1 software renderer
- **File API standardized**: Return values now follow C conventions — 0 for success, non-zero for errors
- **Security audit addressed**: Multiple concerns reported by Radically Open Security (ROS) have been reviewed and fixed
- **Scale**: ~100 closed issues, +500 commits, +20 API functions (619 total), +10 examples (225 total), +100 new contributors (950 total)

## Why it matters
The aligned Image/Texture API reduces cognitive overhead for developers switching between CPU and GPU rendering paths, and the ROS security audit fixes strengthen raylib's position for educational and production use. With 950 total contributors after 13 years, raylib remains one of the most accessible C libraries for graphics and game programming.