Skip to content

Latest commit

 

History

History
29 lines (29 loc) · 1.03 KB

File metadata and controls

29 lines (29 loc) · 1.03 KB

G2D

The Graphics 2D Project

Description

This is intended to be a simple 2d graphics layer for SDL2. It will mainly be useful for having the concept of coordinate system and a camera. This is part of the Daque project.

Naming Convention

The one described here

Current Objectives [100%]

define an initial interface

define an initialization function

A simple init() will do

enable camera setting

static mode (centerX, centerY, width, height)

Setting the camera center and dimensions.

dynamic mode (cameraGetter)

The camera is recalculated each time according to the function (delegate) cameraGetter.

enable drawing a rectangle according to camera setting

define an deinitialization function

image support

load image from file

draw image

free image from memory

toggleable drawing modes

camera

uncamera

manteinance

move code to modules

comment current code