API 레퍼런스
검색 색인 준비 중…

ConvexShape

sf::ConvexShape. 꼭짓점은 윤곽을 도는 순서로 볼록 다각형을 구성해야 합니다.

상속 관계

계층 (theme_hierarchy_view_summary)

소스와 상속
멤버 목록43

생성자

속성

메소드

생성자

속성

shapeInfo: Readonly<NativeShapeInfo>
소스와 상속

메소드

  • 매개변수

    operation
    number
    x
    number
    y선택 사항
    number
    z선택 사항
    number

    반환값

    void
    소스와 상속
  • 현재 텍스처 참조를 반환합니다. 설정되지 않았으면 null입니다.

    반환값


        | null
        | Readonly<
            Pick<
                Texture,
                | "getSize"
                | typeof graphicsNative
                | typeof textureId
                | typeof textureOwner
                | "copyToImage"
                | "isSmooth"
                | "isRepeated"
                | "isSrgb"
                | "getNativeHandle",
            >,
        >
    소스와 상속
  • 윤곽선 마이터 연장 길이와 두께의 최대 비율을 설정합니다. 1 이상이어야 합니다.

    매개변수

    this
    ShapeResource
    limit
    number

    반환값

    void
    소스와 상속
  • 로컬 좌표계의 윤곽선 두께를 설정합니다. 양수는 바깥쪽으로, 음수는 안쪽으로 확장합니다.

    매개변수

    this
    ShapeResource
    thickness
    number

    반환값

    void
    소스와 상속
  • 텍스처 참조를 설정하고 유지합니다. null은 텍스처를 비활성화하며 resetRect가 true이면 전체 텍스처를 사용합니다.

    매개변수

    this
    ShapeResource
    texture

        | null
        | Readonly<
            Pick<
                Texture,
                | "getSize"
                | typeof graphicsNative
                | typeof textureId
                | typeof textureOwner
                | "copyToImage"
                | "isSmooth"
                | "isRepeated"
                | "isSrgb"
                | "getNativeHandle",
            >,
        >
    resetRect
    boolean = false

    반환값

    void
    소스와 상속
  • 하위 클래스의 getPointCount/getPoint로 네이티브 기하 구조를 다시 만듭니다. 사용자 정의 꼭짓점을 변경한 후 호출해야 합니다.

    매개변수

    this

    반환값

    void
    소스와 상속

심볼 멤버

"[graphicsNative]": NativeGraphicsHandle<"shape">
소스와 상속
"[mutableValue]": true
소스와 상속
"[shapeState]": ShapeData
소스와 상속
"[transformableState]": TransformableState
소스와 상속

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0