/**
 * Copyright (c) 2021 Dominic Masters
 * 
 * This software is released under the MIT License.
 * https://opensource.org/licenses/MIT
 */
#include "pokergameassets.h"

bool pokerGameAssetsInit(pokergameassets_t *assets) {
  assetShaderLoad(&assets->shader,
    "shaders/textured.vert", "shaders/textured.frag"
  );
  assetFontLoad(&assets->font, "fonts/opensans/OpenSans-Bold.ttf");
  languageInit(&assets->language, "locale/language/en-US.csv");
  assetTextureLoad(&assets->testTexture, "test_texture.png");
  assetTextureLoad(&assets->roomTexture, "textures/pub_skywall.png");

  return true;
}

void pokerGameAssetsDispose(pokergameassets_t *assets) {
  textureDispose(&assets->testTexture);
  languageDispose(&assets->language);
  shaderDispose(&assets->shader);
  fontDispose(&assets->font);
}