mirror of
https://github.com/mappu/miqt.git
synced 2025-01-21 06:00:38 +00:00
41 lines
797 B
C++
41 lines
797 B
C++
#include <QSize>
|
|
#include <QSurface>
|
|
#include <QSurfaceFormat>
|
|
#include <qsurface.h>
|
|
#include "gen_qsurface.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
int QSurface_SurfaceClass(const QSurface* self) {
|
|
QSurface::SurfaceClass _ret = self->surfaceClass();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
QSurfaceFormat* QSurface_Format(const QSurface* self) {
|
|
return new QSurfaceFormat(self->format());
|
|
}
|
|
|
|
int QSurface_SurfaceType(const QSurface* self) {
|
|
QSurface::SurfaceType _ret = self->surfaceType();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
bool QSurface_SupportsOpenGL(const QSurface* self) {
|
|
return self->supportsOpenGL();
|
|
}
|
|
|
|
QSize* QSurface_Size(const QSurface* self) {
|
|
return new QSize(self->size());
|
|
}
|
|
|
|
void QSurface_Delete(QSurface* self) {
|
|
delete self;
|
|
}
|
|
|