浏览代码

Review example to show text tinting

pull/639/head
Ray 6 年前
父节点
当前提交
10c22c8d61
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      examples/textures/textures_image_text.c

+ 1
- 1
examples/textures/textures_image_text.c 查看文件

@ -26,7 +26,7 @@ int main()
Image parrots = LoadImage("resources/parrots.png"); // Load image in CPU memory (RAM)
// Draw over image using custom font
ImageDrawTextEx(&parrots, (Vector2){ 20.0f, 20.0f }, font, "[Parrots font drawing]", (float)font.baseSize, 0.0f, WHITE);
ImageDrawTextEx(&parrots, (Vector2){ 20.0f, 20.0f }, font, "[Parrots font drawing]", (float)font.baseSize, 0.0f, RED);
Texture2D texture = LoadTextureFromImage(parrots); // Image converted to texture, uploaded to GPU memory (VRAM)
UnloadImage(parrots); // Once image has been converted to texture and uploaded to VRAM, it can be unloaded from RAM

正在加载...
取消
保存