File: qsurface_c.cpp

package info (click to toggle)
libqtpas 2.6~beta-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,804 kB
  • sloc: cpp: 56,595; pascal: 13,727; makefile: 18; sh: 13
file content (45 lines) | stat: -rw-r--r-- 1,196 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//******************************************************************************
//  Copyright (c) 2017 by Željan Rikalo
//
//  See the included file COPYING.TXT for details about the copyright.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//******************************************************************************


#include "qsurface_c.h"

void QSurface_Destroy(QSurfaceH handle)
{
	delete (QSurface *)handle;
}

void QSurface_size(QSurfaceH handle, PSize retval)
{
	*(QSize *)retval = ((QSurface *)handle)->size();
}


bool QSurface_supportsOpenGL(QSurfaceH handle)
{
  return (bool) ((QSurface *)handle)->supportsOpenGL();
}

QSurface::SurfaceClass QSurface_surfaceClass(QSurfaceH handle)
{
  return (QSurface::SurfaceClass) ((QSurface *)handle)->surfaceClass();
}

QSurface::SurfaceType QSurface_surfaceType(QSurfaceH handle)
{
  return (QSurface::SurfaceType) ((QSurface *)handle)->surfaceType();
}


void QSurface_format(QSurfaceH handle, QSurfaceFormatH areturn)
{
  *(QSurfaceFormat *)areturn = ((QSurface *)handle)->format();
}