JubeatPlus 3.9.11
Loading...
Searching...
No Matches
Texture2D.h File Reference

The engine's sprite-sheet texture: a single OpenGL ES texture that batches many sprite quads into one draw call. More...

import <Foundation/Foundation.h>
import <OpenGLES/gltypes.h>
import <UIKit/UIKit.h>
Include dependency graph for Texture2D.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Texture2D
 A texture that can draw any of the sprites packed into it. More...

Enumerations

enum  Texture2DPixelFormat : NSUInteger { Texture2DPixelFormatRGBA8888 = 1 , Texture2DPixelFormatRGB888 = 2 , Texture2DPixelFormatA8 = 3 }
 The internal storage format of a texture, chosen when its pixels are uploaded. More...

Detailed Description

The engine's sprite-sheet texture: a single OpenGL ES texture that batches many sprite quads into one draw call.

Reconstructed from Ghidra program Jubeat (class Texture2D, image base 0x100000000). All

Ghidra address:
values are offsets relative to that image base.

A Texture2D owns one GL texture (_name), a growable vertex scratch buffer, and a table of sub-rectangles ("sprites") packed into the texture. Callers append quads with the drawSprite , drawInRect , and drawAtPoint families, then flush the whole batch with -commitDraw , which issues a single glDrawElements over the shared element-array buffer the EAGLView binds. The interleaved vertex layout and the texture-coordinate helper live in the shared sprite_vertex.h , used only by the implementation.

Enumeration Type Documentation

◆ Texture2DPixelFormat

enum Texture2DPixelFormat : NSUInteger

The internal storage format of a texture, chosen when its pixels are uploaded.

Backed by NSUInteger to match the Q -encoded pixelFormat ivar. The name is inferred from the GL formats each value selects in -setData:pixelFormat:pixelSize:width:height: rather than confirmed against runtime metadata.

Enumerator
Texture2DPixelFormatRGBA8888 

Four bytes per pixel, uploaded as GL_RGBA .

Texture2DPixelFormatRGB888 

Three bytes per pixel, uploaded as GL_RGB .

Texture2DPixelFormatA8 

One byte per pixel, uploaded as GL_ALPHA .