Strange attractors with OpenCL
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <moggle/core/renderbuffer.hpp>
|
|
|
|
|
|
|
|
namespace moggle {
|
|
|
|
|
|
|
|
inline renderbuffer create_renderbuffer(GLsizei width, GLsizei height, GLsizei samples = 1, GLenum format = GL_RGBA4){
|
|
|
|
renderbuffer r;
|
|
|
|
if(samples <= 1) r.storage(GL_RENDERBUFFER, format, width, height);
|
|
|
|
else r.storage_multisample(GL_RENDERBUFFER, samples, format, width, height);
|
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|