QSGGeometry Class
QSGGeometry 클래스는 ‘Qt Quick ’ 시나리오 그래프에서 그래픽 프리미티브를 저장하기 위한 저수준 저장소를 제공합니다. 더 보기...
| 헤더: | #include <QSGGeometry> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick) target_link_libraries(mytarget PRIVATE Qt6::Quick) |
| qmake: | QT += quick |
공개 유형
| struct | Attribute |
| struct | AttributeSet |
| struct | ColoredPoint2D |
| struct | Point2D |
| struct | TexturedPoint2D |
| enum | AttributeType { UnknownAttribute, PositionAttribute, ColorAttribute, TexCoordAttribute, TexCoord1Attribute, TexCoord2Attribute } |
| enum | DataPattern { AlwaysUploadPattern, DynamicPattern, StaticPattern, StreamPattern } |
| enum | DrawingMode { DrawPoints, DrawLines, DrawLineStrip, DrawTriangles, DrawTriangleStrip } |
| enum | Type { ByteType, UnsignedByteType, ShortType, UnsignedShortType, IntType, …, DoubleType } |
공개 함수
| QSGGeometry(const QSGGeometry::AttributeSet &attributes, int vertexCount, int indexCount = 0, int indexType = UnsignedShortType) | |
| virtual | ~QSGGeometry() |
| void | allocate(int vertexCount, int indexCount = 0) |
| int | attributeCount() const |
| const QSGGeometry::Attribute * | attributes() const |
| unsigned int | drawingMode() const |
| int | indexCount() const |
| void * | indexData() |
| const void * | indexData() const |
| uint * | indexDataAsUInt() |
| const uint * | indexDataAsUInt() const |
| quint16 * | indexDataAsUShort() |
| const quint16 * | indexDataAsUShort() const |
| QSGGeometry::DataPattern | indexDataPattern() const |
| int | indexType() const |
| float | lineWidth() const |
| void | markIndexDataDirty() |
| void | markVertexDataDirty() |
| void | setDrawingMode(unsigned int mode) |
(since 6.10) void | setIndexCount(int count) |
| void | setIndexDataPattern(QSGGeometry::DataPattern p) |
| void | setLineWidth(float width) |
(since 6.10) void | setVertexCount(int count) |
| void | setVertexDataPattern(QSGGeometry::DataPattern p) |
| int | sizeOfIndex() const |
| int | sizeOfVertex() const |
| int | vertexCount() const |
| void * | vertexData() |
| const void * | vertexData() const |
| QSGGeometry::ColoredPoint2D * | vertexDataAsColoredPoint2D() |
| const QSGGeometry::ColoredPoint2D * | vertexDataAsColoredPoint2D() const |
| QSGGeometry::Point2D * | vertexDataAsPoint2D() |
| const QSGGeometry::Point2D * | vertexDataAsPoint2D() const |
| QSGGeometry::TexturedPoint2D * | vertexDataAsTexturedPoint2D() |
| const QSGGeometry::TexturedPoint2D * | vertexDataAsTexturedPoint2D() const |
| QSGGeometry::DataPattern | vertexDataPattern() const |
정적 공용 멤버
| const QSGGeometry::AttributeSet & | defaultAttributes_ColoredPoint2D() |
| const QSGGeometry::AttributeSet & | defaultAttributes_Point2D() |
| const QSGGeometry::AttributeSet & | defaultAttributes_TexturedPoint2D() |
| void | updateColoredRectGeometry(QSGGeometry *g, const QRectF &rect) |
| void | updateRectGeometry(QSGGeometry *g, const QRectF &rect) |
| void | updateTexturedRectGeometry(QSGGeometry *g, const QRectF &rect, const QRectF &textureRect) |
상세 설명
QSGGeometry 클래스는 씬 그래프를 통해 렌더링된 프리미티브의 지오메트리를 저장합니다. 이 클래스에는 정점 데이터와 선택적으로 인덱스 데이터가 포함됩니다. 지오메트리 그리기에 사용되는 모드(프리미티브 토폴로지라고도 함)는 ` setDrawingMode()`를 통해 지정됩니다.
정점은 x 및 y 값으로 정의된 단순한 점일 수도 있고, 각 정점이 법선, 텍스처 좌표 및 3D 위치를 포함하는 더 복잡한 형태일 수도 있습니다. ` QSGGeometry::AttributeSet `는 정점 데이터가 어떻게 구성되는지를 설명하는 데 사용됩니다. 속성 집합은 생성 시에만 지정할 수 있습니다. QSGGeometry 클래스는 기본적으로 몇 가지 편리한 속성과 속성 집합을 제공합니다. defaultAttributes_Point2D() 함수는 일반 단색 사각형에 사용될 속성 집합을 반환하는 반면, defaultAttributes_TexturedPoint2D 함수는 텍스처가 적용된 2D 지오메트리에 사용될 속성을 반환합니다. 버텍스 데이터는 내부적으로 ` void * ` 형식으로 저장되며, ` vertexData()` 함수를 통해 접근할 수 있습니다. 일반적인 속성 세트에 대한 편리한 액세서리로는 ` vertexDataAsPoint2D()` 및 ` vertexDataAsTexturedPoint2D()`가 제공됩니다. 버텍스 데이터는 생성자에 버텍스 개수를 전달하거나, 나중에 ` allocate()`를 호출하여 할당됩니다.
생성 후에는 allocate() 메서드를 사용하여 데이터 버퍼의 크기를 조정함으로써 정점 및 인덱스의 수를 변경할 수 있습니다. 그러나 allocate()는 호출할 때마다 모든 정점 및 인덱스 데이터를 업데이트해야 합니다. Qt 6.10부터는 ` setVertexCount()` 및 ` setIndexCount()`을 사용하면 데이터 버퍼를 재할당하지 않고도 정점 또는 인덱스 수를 조정할 수 있으며, 새로운 정점이나 인덱스만 업데이트하면 됩니다. 두 경우 모두 호출자는 렌더러가 내부 버퍼를 업데이트할 수 있도록 ` node->markDirty(QSGNode::DirtyGeometry)`를 호출하여 지오메트리 노드를 '더티(dirty)' 상태로 표시해야 합니다.
QSGGeometry는 선택적으로 부호 없는 32비트, 부호 없는 16비트 또는 부호 없는 8비트 정수형 인덱스를 포함할 수 있습니다. 인덱스 유형은 생성 시 지정해야 하며, 변경할 수 없습니다.
다음은 위치 및 색상 정점으로 구성된 지오메트리를 생성하는 방법을 보여주는 코드 조각입니다.
struct MyPoint2D {
float x;
float y;
float r;
float g;
float b;
float a;
void set(float x_, float y_, float r_, float g_, float b_, float a_) {
x = x_;
y = y_;
r = r_;
g = g_;
b = b_;
a = a_;
}
};
QSGGeometry::Attribute MyPoint2D_Attributes[] = {
QSGGeometry::Attribute::create(0, 2, FloatType, true),
QSGGeometry::Attribute::create(1, 4, FloatType, false)
};
QSGGeometry::AttributeSet MyPoint2D_AttributeSet = {
2,
sizeof(MyPoint2D),
MyPoint2D_Attributes
};
...
geometry = new QSGGeometry(MyPoint2D_AttributeSet, 2);
geometry->setDrawingMode(DrawLines);
MyPoint2D *vertices = static_cast<MyPoint2D *>(geometry->vertexData());
vertices[0].set(0, 0, 1, 0, 0, 1);
vertices[1].set(width(), height(), 0, 0, 1, 1);QSGGeometry는 소프트웨어 버퍼이며, 가속 렌더링 측면에서 클라이언트 측에 속합니다. 2D 그래픽에서 사용되는 버퍼는 일반적으로 매 프레임마다 변경되는 수많은 작은 버퍼로 구성되어 있어 그래픽 메모리에 업로드하더라도 이점이 없기 때문입니다. 그러나 QSGGeometry는 ` setVertexDataPattern()` 및 ` setIndexDataPattern()` 함수를 사용하여 버퍼를 업로드해야 한다는 힌트를 렌더러에 제공할 수 있습니다. 이 힌트가 반영되는지 여부는 구현에 따라 다릅니다.
참고: QSG 접두사가 붙은모든 클래스는 반드시 씬 그래프의 렌더링 스레드에서만 사용해야 합니다. 자세한 내용은 씬 그래프 및 렌더링을 참조하십시오.
QSGGeometryNode 및 ‘씬 그래프 - 사용자 정의 지오메트리’항목도 참조하십시오 .
멤버 유형 문서
enum QSGGeometry::AttributeType
이 열거형은 여러 속성 유형을 식별합니다.
| 상수 | 값 | 설명 |
|---|---|---|
QSGGeometry::UnknownAttribute | 0 | 상관 없음 |
QSGGeometry::PositionAttribute | 1 | 무관 |
QSGGeometry::ColorAttribute | 2 | 색상 |
QSGGeometry::TexCoordAttribute | 3 | 텍스처 좌표 |
QSGGeometry::TexCoord1Attribute | 4 | 텍스처 좌표 1 |
QSGGeometry::TexCoord2Attribute | 5 | 텍스처 좌표 2 |
enum QSGGeometry::DataPattern
DataPattern 열거형은 지오메트리 객체 내의 정점 및 인덱스 데이터에 대한 사용 패턴을 지정하는 데 사용됩니다.
| 상수 | 값 | 설명 |
|---|---|---|
QSGGeometry::AlwaysUploadPattern | 0 | 데이터는 항상 업로드됩니다. 즉, 사용자는 인덱스 및 정점 데이터를 변경한 후 이를 '변경됨(dirty)' 상태로 명시적으로 표시할 필요가 없습니다. 이것이 기본값입니다. |
QSGGeometry::DynamicPattern | 2 | 데이터가 반복적으로 수정되고 여러 번 그려집니다. 이는 성능을 향상시킬 수 있는 힌트입니다. 이 값으로 설정된 경우, 사용자는 데이터를 변경한 후 반드시 '더티' 상태로 표시해야 합니다. |
QSGGeometry::StaticPattern | 3 | 데이터가 한 번 수정되고 여러 번 렌더링됩니다. 이 설정은 더 나은 성능을 제공할 수 있는 힌트입니다. 이 설정을 적용한 경우, 사용자는 데이터를 변경한 후 반드시 '더티'로 표시해야 합니다. |
QSGGeometry::StreamPattern | 1 | 데이터는 렌더링될 때마다 거의 매번 수정됩니다. 이 설정은 더 나은 성능을 제공할 수 있는 힌트입니다. 이 설정을 적용한 경우, 사용자는 데이터를 변경한 후 반드시 '더티' 상태로 표시해야 합니다. |
enum QSGGeometry::DrawingMode
도면 모드를 지정하며, 이는 ‘프리미티브 토폴로지’라고도 합니다.
참고: Qt6부터 장면 그래프는 지원되는 모든 3D 그래픽 API에서 공통으로 지원되는 토폴로지만 노출합니다. 그 결과, 열거형 값 자체는 여전히 존재하지만 DrawLineLoop 및 DrawTriangleFan 값은 Qt 6의 런타임 환경에서 더 이상 지원되지 않습니다.
| 상수 | 값 |
|---|---|
QSGGeometry::DrawPoints | 0x0000 |
QSGGeometry::DrawLines | 0x0001 |
QSGGeometry::DrawLineStrip | 0x0003 |
QSGGeometry::DrawTriangles | 0x0004 |
QSGGeometry::DrawTriangleStrip | 0x0005 |
enum QSGGeometry::Type
버텍스 데이터의 컴포넌트 유형을 지정합니다.
| 상수 | 값 | 설명 |
|---|---|---|
QSGGeometry::ByteType | 0x1400 | |
QSGGeometry::UnsignedByteType | 0x1401 | |
QSGGeometry::ShortType | 0x1402 | |
QSGGeometry::UnsignedShortType | 0x1403 | |
QSGGeometry::IntType | 0x1404 | |
QSGGeometry::UnsignedIntType | 0x1405 | |
QSGGeometry::FloatType | 0x1406 | |
QSGGeometry::Bytes2Type | 0x1407 | Qt 5.14에 추가되었습니다. |
QSGGeometry::Bytes3Type | 0x1408 | Qt 5.14에 추가되었습니다. |
QSGGeometry::Bytes4Type | 0x1409 | Qt 5.14에 추가되었습니다. |
QSGGeometry::DoubleType | 0x140A | Qt 5.14에 추가되었습니다. |
멤버 함수 문서
QSGGeometry::QSGGeometry(const QSGGeometry::AttributeSet &attributes, int vertexCount, int indexCount = 0, int indexType = UnsignedShortType)
attributes 를 기반으로 지오메트리 객체를 생성합니다.
이 객체는 attributes 에 누적된 크기를 기준으로 vertexCount 의 정점들을 위한 공간을 할당하며, indexCount 에 대해서도 공간을 할당합니다.
indexType 는 UnsignedShortType 또는 UnsignedIntType 일 수 있습니다. 후자에 대한 지원 여부는 런타임에 사용되는 그래픽 API 구현에 따라 다르며, 항상 사용 가능한 것은 아닙니다.
Geometry 객체는 기본적으로 DrawTriangleStrip 을 그리기 모드로 설정하여 생성됩니다.
참고: attributes 및 이에 의해 참조되는 Attribute 객체는 QSGGeometry의 전체 수명 기간 동안 유효한 상태를 유지해야 합니다. QSGGeometry는 attributes 에 대한 참조를 저장하며, Attribute 객체를 삭제하지 않습니다.
[virtual noexcept] QSGGeometry::~QSGGeometry()
지오메트리 객체와 해당 객체가 할당해 둔 정점 및 인덱스 데이터를 삭제합니다.
void QSGGeometry::allocate(int vertexCount, int indexCount = 0)
이 지오메트리 객체의 정점 및 인덱스 데이터를 vertexCount 정점과 indexCount 인덱스에 맞게 크기를 조정하고, 그에 따라 정점과 인덱스의 개수를 설정합니다.
allocate()를 다시 호출하지 않고도 setVertexCount() 또는 setIndexCount()를 사용하여 정점 또는 인덱스 수를 변경할 수 있습니다.
이 호출 후 버텍스 및 인덱스 데이터는 무효화되며, 호출자는 렌더러가 내부 버퍼를 업데이트할 수 있도록 node->markDirty(QSGNode::DirtyGeometry) 를 호출하여 관련 지오메트리 노드를 더티(dirty) 상태로 표시해야 합니다.
setVertexCount() 및 setIndexCount()도 참조하십시오 .
int QSGGeometry::attributeCount() const
이 지오메트리가 사용하는 속성 집합에 포함된 속성의 개수를 반환합니다.
const QSGGeometry::Attribute *QSGGeometry::attributes() const
이 지오메트리의 속성을 포함하는 배열을 반환합니다. 배열의 크기는 ` attributeCount()` 함수를 통해 지정됩니다.
[static] const QSGGeometry::AttributeSet &QSGGeometry::defaultAttributes_ColoredPoint2D()
버텍스별 색상이 지정된 2D 그리기에 사용될 속성을 반환하는 편의 함수입니다.
[static] const QSGGeometry::AttributeSet &QSGGeometry::defaultAttributes_Point2D()
2D 단색 도면에 사용할 속성을 반환하는 편의 함수입니다.
[static] const QSGGeometry::AttributeSet &QSGGeometry::defaultAttributes_TexturedPoint2D()
텍스처가 적용된 2D 그리기에 사용될 속성을 반환하는 편의 함수입니다.
unsigned int QSGGeometry::drawingMode() const
이 지오메트리의 그리기 모드를 반환합니다.
기본값은 ` DrawTriangleStrip`입니다.
setDrawingMode()도 참조하십시오 .
int QSGGeometry::indexCount() const
지오메트리 객체가 렌더링될 때 처리되는 인덱스의 개수를 반환합니다.
setIndexCount()도 참조하십시오 .
void *QSGGeometry::indexData()
이 지오메트리 객체의 원시 인덱스 데이터에 대한 포인터를 반환합니다.
indexDataAsUShort() 및 indexDataAsUInt()도 참조하십시오 .
const void *QSGGeometry::indexData() const
이 지오메트리 객체의 원시 인덱스 데이터에 대한 포인터를 반환합니다.
indexDataAsUShort() 및 indexDataAsUInt()도 참조하십시오 .
uint *QSGGeometry::indexDataAsUInt()
인덱스 데이터를 32비트 부호 없는 정수의 변경 가능한 배열로 접근할 수 있게 해주는 편리한 함수입니다.
const uint *QSGGeometry::indexDataAsUInt() const
인덱스 데이터를 32비트 부호 없는 정수의 불변 배열로 접근할 수 있게 해주는 편리한 함수입니다.
quint16 *QSGGeometry::indexDataAsUShort()
인덱스 데이터를 16비트 부호 없는 정수의 가변 배열로 접근할 수 있게 해주는 편의 함수입니다.
const quint16 *QSGGeometry::indexDataAsUShort() const
인덱스 데이터를 16비트 부호 없는 정수의 불변 배열로 가져올 수 있는 편리한 함수입니다.
QSGGeometry::DataPattern QSGGeometry::indexDataPattern() const
이 지오메트리에서 인덱스의 사용 패턴을 반환합니다. 기본 패턴은 AlwaysUploadPattern 입니다.
setIndexDataPattern()도 참조하십시오 .
int QSGGeometry::indexType() const
이 지오메트리 객체에서 인덱스에 사용되는 기본 데이터형을 반환합니다.
float QSGGeometry::lineWidth() const
이 지오메트리에 사용될 현재 선 또는 점의 두께를 가져옵니다. 이 속성은 ‘ drawingMode ’가 ‘ DrawLines ’ 또는 ‘ DrawLineStrip ’일 때만 선 두께에 적용됩니다. 지원되는 경우, ‘ drawingMode ’가 ‘ DrawPoints ’일 때 점 크기에 대해서도 적용됩니다.
기본값은 1.0
참고: 포인트 및 선 그리기 기능은 플랫폼과 그래픽 API에 따라 실행 시지원이 제한될 수 있습니다. 예를 들어, 일부 API는 포인트 스프라이트를 지원하지 않으므로 1 이외의 크기를 설정할 수 없습니다.
참고: ` 1.0 `의너비는 항상 지원됩니다.
setLineWidth() 및 drawingMode()도 참조하십시오 .
void QSGGeometry::markIndexDataDirty()
이 지오메트리의 정점이 변경되었으므로 다시 업로드해야 함을 표시하십시오.
이 함수는 정점의 사용 패턴이 StaticData이고, 이 지오메트리를 렌더링하는 렌더러가 해당 지오메트리를 VBO(Vertex Buffer Object)로 업로드하는 경우에만 효과가 있습니다.
void QSGGeometry::markVertexDataDirty()
이 지오메트리의 정점이 변경되었으므로 다시 업로드해야 함을 표시하십시오.
이 함수는 정점의 사용 패턴이 StaticData이고, 이 지오메트리를 렌더링하는 렌더러가 해당 지오메트리를 VBO(Vertex Buffer Object)로 업로드하는 경우에만 효과가 있습니다.
void QSGGeometry::setDrawingMode(unsigned int mode)
이 지오메트리를 그리는 데 사용할 mode 를 설정합니다.
기본값은 QSGGeometry::DrawTriangleStrip 입니다.
drawingMode() 및 DrawingMode도 참조하십시오 .
[since 6.10] void QSGGeometry::setIndexCount(int count)
지오메트리 오브젝트가 렌더링될 때마다 처리될 인덱스의 수를 설정합니다.
count 는 유효성 검증을 거치지 않으므로, 0과 할당된 인덱스 수 사이의 값만 지정되도록 하는 것은 사용자의 책임입니다.
이 호출 후 정점 및 인덱스 데이터는 무효화되지 않지만, 호출자는 렌더러가 내부 버퍼를 업데이트할 수 있도록 node->markDirty(QSGNode::DirtyGeometry) 을 호출하여 지오메트리 노드를 '더티' 상태로 표시해야 합니다.
이 함수는 Qt 6.10에서 도입되었습니다.
indexCount()도 참조하십시오 .
void QSGGeometry::setIndexDataPattern(QSGGeometry::DataPattern p)
인덱스의 사용 패턴을 ‘ p ’로 설정합니다.
기본값은 ` AlwaysUploadPattern`입니다. 기본값 이외의 값으로 설정된 경우, 사용자는 ` QSGNode::DirtyGeometry`을 사용하여 ` QSGNode::markDirty()`를 호출하는 것 외에도, 인덱스 데이터를 변경한 후 ` markIndexDataDirty()`를 호출해야 합니다.
indexDataPattern()도 참조하십시오 .
void QSGGeometry::setLineWidth(float width)
이 지오메트리에 사용될 선 또는 점의 두께를 ` width`로 설정합니다. 이 속성은 ` drawingMode `가 ` DrawLines ` 또는 ` DrawLineStrip`일 때만 선 두께에 적용됩니다. 지원되는 경우, ` drawingMode `가 ` DrawPoints`일 때 점 크기에 대해서도 적용됩니다.
참고: 포인트 및 선 그리기 기능은 플랫폼 및 그래픽 API에 따라 실행 시지원이 제한될 수 있습니다. 예를 들어, 일부 API는 포인트 스프라이트를 지원하지 않으므로 1 이외의 크기를 설정할 수 없습니다.
참고: ` 1.0 `의너비는 항상 지원됩니다.
lineWidth() 및 drawingMode()도 참조하십시오 .
[since 6.10] void QSGGeometry::setVertexCount(int count)
렌더링할 정점의 수를 설정합니다.
count 는 유효성 검사를 거치지 않으므로, 0과 할당된 정점 수 사이의 값만 지정되도록 하는 것은 사용자의 책임입니다.
이 호출 후 정점 데이터는 무효화되지 않지만, 호출자는 node->markDirty(QSGNode::DirtyGeometry) 를 호출하여 지오메트리 노드를 '더티' 상태로 표시해야만 렌더러가 내부 버퍼를 업데이트할 수 있습니다.
이 함수는 Qt 6.10에서 도입되었습니다.
vertexCount()도 참조하십시오 .
void QSGGeometry::setVertexDataPattern(QSGGeometry::DataPattern p)
정점의 사용 패턴을 ` p`로 설정합니다.
기본값은 ` AlwaysUploadPattern`입니다. 기본값 이외의 값으로 설정된 경우, 사용자는 ` QSGNode::DirtyGeometry`을 사용하여 ` QSGNode::markDirty()`를 호출하는 것 외에도, 정점 데이터를 변경한 후 ` markVertexDataDirty()`를 호출해야 합니다.
vertexDataPattern()도 참조하십시오 .
int QSGGeometry::sizeOfIndex() const
인덱스 유형의 바이트 크기를 반환합니다.
이 값은 인덱스 유형이 ` UnsignedShortType`인 경우 ` 2 `이며, 인덱스 유형이 ` UnsignedIntType`인 경우 ` 4 `입니다.
int QSGGeometry::sizeOfVertex() const
하나의 정점의 크기를 바이트 단위로 반환합니다.
이 값은 속성에서 가져옵니다.
[static] void QSGGeometry::updateColoredRectGeometry(QSGGeometry *g, const QRectF &rect)
g 에 있는 지오메트리를 rect 에 있는 좌표로 업데이트합니다.
이 함수는 지오메트리 객체가 QSGGeometry::ColoredPoint2D 개의 정점으로 구성된 단일 삼각형 스트립을 포함하고 있다고 가정합니다.
[static] void QSGGeometry::updateRectGeometry(QSGGeometry *g, const QRectF &rect)
g 에 있는 지오메트리를 rect 에 있는 좌표로 업데이트합니다.
이 함수는 지오메트리 객체가 QSGGeometry::Point2D 개의 정점으로 구성된 단일 삼각형 스트립을 포함하고 있다고 가정합니다.
[static] void QSGGeometry::updateTexturedRectGeometry(QSGGeometry *g, const QRectF &rect, const QRectF &textureRect)
g 의 지오메트리를 rect 의 좌표와 textureRect 의 텍스처 좌표로 업데이트합니다.
textureRect 좌표는 정규화된 좌표여야 합니다.
g QSGGeometry::TexturedPoint2D 유형의 4개 정점으로 구성된 삼각형 스트립으로 가정합니다.
int QSGGeometry::vertexCount() const
렌더링할 수 있는 정점의 수를 반환하거나, 인덱스가 사용되는 경우 인덱스를 통해 액세스할 수 있는 정점의 수를 반환합니다.
setVertexCount()도 참조하십시오 .
void *QSGGeometry::vertexData()
이 지오메트리 객체의 원시 정점 데이터에 대한 포인터를 반환합니다.
vertexDataAsPoint2D() 및 vertexDataAsTexturedPoint2D()도 참조하십시오 .
const void *QSGGeometry::vertexData() const
이 지오메트리 객체의 원시 정점 데이터에 대한 포인터를 반환합니다.
vertexDataAsPoint2D() 및 vertexDataAsTexturedPoint2D()도 참조하십시오 .
QSGGeometry::ColoredPoint2D *QSGGeometry::vertexDataAsColoredPoint2D()
QSGGeometry::ColoredPoint2D 의 변경 가능한 배열 형태로 정점 데이터에 접근할 수 있게 해주는 편의 함수입니다.
const QSGGeometry::ColoredPoint2D *QSGGeometry::vertexDataAsColoredPoint2D() const
QSGGeometry::ColoredPoint2D 의 불변 배열 형태로 정점 데이터에 접근할 수 있게 해주는 편리한 함수입니다.
QSGGeometry::Point2D *QSGGeometry::vertexDataAsPoint2D()
QSGGeometry::Point2D 의 가변 배열 형태로 정점 데이터에 접근할 수 있는 편리한 함수입니다.
const QSGGeometry::Point2D *QSGGeometry::vertexDataAsPoint2D() const
QSGGeometry::Point2D 의 불변 배열 형태로 정점 데이터에 접근할 수 있게 해주는 편리한 함수입니다.
QSGGeometry::TexturedPoint2D *QSGGeometry::vertexDataAsTexturedPoint2D()
QSGGeometry::TexturedPoint2D 의 가변 배열 형태로 정점 데이터에 접근할 수 있게 해주는 편리한 함수입니다.
const QSGGeometry::TexturedPoint2D *QSGGeometry::vertexDataAsTexturedPoint2D() const
QSGGeometry::TexturedPoint2D 의 불변 배열 형태로 정점 데이터에 접근할 수 있게 해주는 편리한 함수입니다.
QSGGeometry::DataPattern QSGGeometry::vertexDataPattern() const
이 지오메트리의 정점에 대한 사용 패턴을 반환합니다. 기본 패턴은 ‘ AlwaysUploadPattern ’입니다.
setVertexDataPattern()도 참조하십시오 .
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.