60 return Beatmup::GL::TextureHandler::TextureFormat::OES_Ext;
A very basic class for any image.
Context & ctx
context managing this bitmap
Image coming from a SurfaceTexture (Camera or video decoder)
const pixbyte * getData(int x, int y) const
Returns a pointer to given pixel.
void lockPixelData()
Locks access to the CPU memory buffer containing pixel data.
jmethodID updateTexImageMethodId
virtual void prepare(GraphicPipeline &gpu)
Prepares (eventually uploads) texture data on GPU.
pixbyte * getData(int x, int y)
void bind(JNIEnv *jenv, jobject frontend)
Attaches the bitmap object to its Java frontend and initializes the surface texture in it.
const int getDepth() const
Depth of the texture in pixels.
const int getWidth() const
Width of the texture in pixels.
void unlockPixelData()
Unlocks access to the CPU memory buffer containing pixel data.
const Beatmup::GL::TextureHandler::TextureFormat getTextureFormat() const
Returns the texture format specifying how the shader must interpret the data.
const PixelFormat getPixelFormat() const
Pixel format of the bitmap.
const msize getMemorySize() const
Bitmap size in bytes.
const int getHeight() const
Height of the texture in pixels.
ExternalBitmap(Beatmup::Context &ctx)
Instantiates external image.
void notifyUpdate(const int width, const int height)
Basic class: task and memory management, any kind of static data.
TextureFormat
Texture format, specifies how the texture should be interpreted on the shader side.
Internal low-level GPU control API.
uint32_t msize
memory size
@ TripleByte
3 channels of 8 bits per pixel (like RGB), unsigned integer values
jobject jlong jint jint y