OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::PlayingCard::CardInfo Struct Reference

カードの描画用の情報 More...

#include <PlayingCard.hpp>

Public Member Functions

 CardInfo ()=default
 デフォルトコンストラクタ More...
 
 CardInfo (const Card &card, const Font &font, const Font &fontLarge, const Font &fontEmoji, const Vec2 &size, double frameThickness, const ColorF &backSideColor)
 カードの情報を作成します。 More...
 
void drawBack (const Vec2 &pos) const
 カードの裏面を描画します。 More...
 
void drawBack (double x, double y) const
 カードの裏面を描画します。 More...
 
void drawBack (const Vec2 &pos, double angle) const
 カードの裏面を描画します。 More...
 
void drawBack (double x, double y, double angle) const
 カードの裏面を描画します。 More...
 
void drawBackAt (const Vec2 &center) const
 中心座標を指定してカードの裏面を描画します。 More...
 
void drawBackAt (double x, double y) const
 中心座標を指定してカードの裏面を描画します。 More...
 
void drawBackAt (const Vec2 &center, double angle) const
 中心座標を指定してカードの裏面を描画します。 More...
 
void drawBackAt (double x, double y, double angle) const
 中心座標を指定してカードの裏面を描画します。 More...
 
void draw (const Vec2 &pos) const
 カードを描画します。 More...
 
void draw (double x, double y) const
 カードを描画します。 More...
 
void draw (const Vec2 &pos, double angle) const
 カードを描画します。 More...
 
void draw (double x, double y, double angle) const
 カードを描画します。 More...
 
void drawAt (const Vec2 &center) const
 中心座標を指定してカードを描画します。 More...
 
void drawAt (double x, double y) const
 中心座標を指定してカードを描画します。 More...
 
void drawAt (const Vec2 &center, double angle) const
 中心座標を指定してカードを描画します。 More...
 
void drawAt (double x, double y, double angle) const
 中心座標を指定してカードを描画します。 More...
 
void drawSimple (const Vec2 &pos) const
 シンプルなデザインでカードを描画します。 More...
 
void drawSimple (double x, double y) const
 シンプルなデザインでカードを描画します。 More...
 
void drawSimple (const Vec2 &pos, double angle) const
 シンプルなデザインでカードを描画します。 More...
 
void drawSimple (double x, double y, double angle) const
 シンプルなデザインでカードを描画します。 More...
 
void drawSimpleAt (const Vec2 &center) const
 中心座標を指定してシンプルなデザインでカードを描画します。 More...
 
void drawSimpleAt (double x, double y) const
 中心座標を指定してシンプルなデザインでカードを描画します。 More...
 
void drawSimpleAt (const Vec2 &center, double angle) const
 中心座標を指定してシンプルなデザインでカードを描画します。 More...
 
void drawSimpleAt (double x, double y, double angle) const
 中心座標を指定してシンプルなデザインでカードを描画します。 More...
 

Detailed Description

カードの描画用の情報

Constructor & Destructor Documentation

◆ CardInfo() [1/2]

s3d::PlayingCard::CardInfo::CardInfo ( )
default

デフォルトコンストラクタ

◆ CardInfo() [2/2]

s3d::PlayingCard::CardInfo::CardInfo ( const Card card,
const Font font,
const Font fontLarge,
const Font fontEmoji,
const Vec2 size,
double  frameThickness,
const ColorF backSideColor 
)

カードの情報を作成します。

Parameters
cardカード
font描画に使用するフォント
fontLarge描画に使用するフォント
sizeカードの大きさ
frameThickness枠の太さ
backSideColor裏面の色

Member Function Documentation

◆ draw() [1/4]

void s3d::PlayingCard::CardInfo::draw ( const Vec2 pos) const

カードを描画します。

Parameters
posカードの左上の座標

◆ draw() [2/4]

void s3d::PlayingCard::CardInfo::draw ( const Vec2 pos,
double  angle 
) const

カードを描画します。

Parameters
posカードの左上の座標
angleカードの時計回りの回転

◆ draw() [3/4]

void s3d::PlayingCard::CardInfo::draw ( double  x,
double  y 
) const

カードを描画します。

Parameters
xカードの左上の X 座標
yカードの左上の Y 座標

◆ draw() [4/4]

void s3d::PlayingCard::CardInfo::draw ( double  x,
double  y,
double  angle 
) const

カードを描画します。

Parameters
xカードの左上の X 座標
yカードの左上の Y 座標
angleカードの時計回りの回転

◆ drawAt() [1/4]

void s3d::PlayingCard::CardInfo::drawAt ( const Vec2 center) const

中心座標を指定してカードを描画します。

Parameters
centerカードの中心の座標

◆ drawAt() [2/4]

void s3d::PlayingCard::CardInfo::drawAt ( const Vec2 center,
double  angle 
) const

中心座標を指定してカードを描画します。

Parameters
centerカードの中心の座標
angleカードの時計回りの回転

◆ drawAt() [3/4]

void s3d::PlayingCard::CardInfo::drawAt ( double  x,
double  y 
) const

中心座標を指定してカードを描画します。

Parameters
xカードの中心の X 座標
yカードの中心の Y 座標

◆ drawAt() [4/4]

void s3d::PlayingCard::CardInfo::drawAt ( double  x,
double  y,
double  angle 
) const

中心座標を指定してカードを描画します。

Parameters
xカードの中心の X 座標
yカードの中心の Y 座標
angleカードの時計回りの回転

◆ drawBack() [1/4]

void s3d::PlayingCard::CardInfo::drawBack ( const Vec2 pos) const

カードの裏面を描画します。

Parameters
posカードの左上の座標

◆ drawBack() [2/4]

void s3d::PlayingCard::CardInfo::drawBack ( const Vec2 pos,
double  angle 
) const

カードの裏面を描画します。

Parameters
posカードの左上の座標
angleカードの時計回りの回転

◆ drawBack() [3/4]

void s3d::PlayingCard::CardInfo::drawBack ( double  x,
double  y 
) const

カードの裏面を描画します。

Parameters
xカードの左上の X 座標
yカードの左上の Y 座標

◆ drawBack() [4/4]

void s3d::PlayingCard::CardInfo::drawBack ( double  x,
double  y,
double  angle 
) const

カードの裏面を描画します。

Parameters
xカードの左上の X 座標
yカードの左上の Y 座標
angleカードの時計回りの回転

◆ drawBackAt() [1/4]

void s3d::PlayingCard::CardInfo::drawBackAt ( const Vec2 center) const

中心座標を指定してカードの裏面を描画します。

Parameters
centerカードの中心の座標

◆ drawBackAt() [2/4]

void s3d::PlayingCard::CardInfo::drawBackAt ( const Vec2 center,
double  angle 
) const

中心座標を指定してカードの裏面を描画します。

Parameters
centerカードの中心の座標
angleカードの時計回りの回転

◆ drawBackAt() [3/4]

void s3d::PlayingCard::CardInfo::drawBackAt ( double  x,
double  y 
) const

中心座標を指定してカードの裏面を描画します。

Parameters
xカードの左上の X 座標
yカードの左上の Y 座標

◆ drawBackAt() [4/4]

void s3d::PlayingCard::CardInfo::drawBackAt ( double  x,
double  y,
double  angle 
) const

中心座標を指定してカードの裏面を描画します。

Parameters
xカードの中心の X 座標
yカードの中心の Y 座標
angleカードの時計回りの回転

◆ drawSimple() [1/4]

void s3d::PlayingCard::CardInfo::drawSimple ( const Vec2 pos) const

シンプルなデザインでカードを描画します。

Parameters
posカードの左上の座標

◆ drawSimple() [2/4]

void s3d::PlayingCard::CardInfo::drawSimple ( const Vec2 pos,
double  angle 
) const

シンプルなデザインでカードを描画します。

Parameters
posカードの左上の座標
angleカードの時計回りの回転

◆ drawSimple() [3/4]

void s3d::PlayingCard::CardInfo::drawSimple ( double  x,
double  y 
) const

シンプルなデザインでカードを描画します。

Parameters
xカードの左上の X 座標
yカードの左上の Y 座標

◆ drawSimple() [4/4]

void s3d::PlayingCard::CardInfo::drawSimple ( double  x,
double  y,
double  angle 
) const

シンプルなデザインでカードを描画します。

Parameters
xカードの左上の X 座標
yカードの左上の Y 座標
angleカードの時計回りの回転

◆ drawSimpleAt() [1/4]

void s3d::PlayingCard::CardInfo::drawSimpleAt ( const Vec2 center) const

中心座標を指定してシンプルなデザインでカードを描画します。

Parameters
centerカードの中心の座標

◆ drawSimpleAt() [2/4]

void s3d::PlayingCard::CardInfo::drawSimpleAt ( const Vec2 center,
double  angle 
) const

中心座標を指定してシンプルなデザインでカードを描画します。

Parameters
centerカードの中心の座標
angleカードの時計回りの回転

◆ drawSimpleAt() [3/4]

void s3d::PlayingCard::CardInfo::drawSimpleAt ( double  x,
double  y 
) const

中心座標を指定してシンプルなデザインでカードを描画します。

Parameters
xカードの中心の X 座標
yカードの中心の Y 座標

◆ drawSimpleAt() [4/4]

void s3d::PlayingCard::CardInfo::drawSimpleAt ( double  x,
double  y,
double  angle 
) const

中心座標を指定してシンプルなデザインでカードを描画します。

Parameters
xカードの中心の X 座標
yカードの中心の Y 座標
angleカードの時計回りの回転

The documentation for this struct was generated from the following file: