2024-10-20 18:21:03 +13:00
|
|
|
#include <QSize>
|
|
|
|
#include <QSurface>
|
|
|
|
#include <QSurfaceFormat>
|
|
|
|
#include <qsurface.h>
|
|
|
|
#include "gen_qsurface.h"
|
2024-12-11 19:55:47 +13:00
|
|
|
|
2025-01-07 11:30:33 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
2024-12-11 19:55:47 +13:00
|
|
|
#endif
|
2024-10-20 18:21:03 +13:00
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QSurface_surfaceClass(const QSurface* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
QSurface::SurfaceClass _ret = self->surfaceClass();
|
|
|
|
return static_cast<int>(_ret);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
QSurfaceFormat* QSurface_format(const QSurface* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
return new QSurfaceFormat(self->format());
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QSurface_surfaceType(const QSurface* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
QSurface::SurfaceType _ret = self->surfaceType();
|
|
|
|
return static_cast<int>(_ret);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QSurface_supportsOpenGL(const QSurface* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
return self->supportsOpenGL();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
QSize* QSurface_size(const QSurface* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
return new QSize(self->size());
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QSurface_delete(QSurface* self) {
|
2025-01-18 17:42:41 +13:00
|
|
|
delete self;
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|