> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nanoforge.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# useGraphics

> Register the graphics library used to render the game.

# useGraphics

## Summary

Register the graphics library used to render the game.

## Signature

```typescript theme={null}
useGraphics(library: IGraphicsLibrary): void;
```

## Parameters

### library

**Type**:`IGraphicsLibrary`

Graphics library instance (e.g. Graphics2DLibrary).

## Returns

**Type**:`void`

Register the graphics library used to render the game.
