git.haldean.org qb / b340f54 qbshim.cpp
b340f54

Tree @b340f54 (Download .tar.gz)

qbshim.cpp @b340f54raw · history · blame

#include "qb.hpp"
#include "qbshim.hpp"

qb_context_ptr
qb_init()
{
  return new qb::context();
}

void qb_frame(qb_context_ptr ctx, int width, int height)
{
  reinterpret_cast<qb::context*>(ctx)->frame(width, height);
}

void qb_shutdown(qb_context_ptr ctx)
{
  reinterpret_cast<qb::context*>(ctx)->shutdown();
}