throw new RuntimeException("Attempt to retrieve sprite before game window was created");
}
switch (renderingType) {
case OPENGL_LWJGL:
{
return new LWJGLSprite((LWJGLGameWindow) window,ref, slice);
}
}
throw new RuntimeException("Unknown rendering type: "+renderingType);
}