DxLibEx
dxle::graph2d::screen Class Referencefinal

描画可能画像クラス More...

#include <texture2d.hpp>

Inheritance diagram for dxle::graph2d::screen:
Collaboration diagram for dxle::graph2d::screen:

Public Member Functions

std::unique_ptr< texture2dclone () const override
 画像を複製する More...
 
std::unique_ptr< screencloneSc () const
 画像を複製する More...
 
template<typename Func_T >
screendraw_on_this (Func_T &&draw_func)
 
int SetUseGraphZBuffer (bool UseFlag, int BitDepth=-1) DXLE_NOEXCEPT_OR_NOTHROW
 
int CopyGraphZBufferImage (screen &ToGraph) const DXLE_NOEXCEPT_OR_NOTHROW
 
int BltDrawValidGraph (int x1, int y1, int x2, int y2, int DestX, int DestY, texture2d &DestGrHandle) const DXLE_NOEXCEPT_OR_NOTHROW
 
int BltDrawValidGraph (const pointi &lu, const pointi &rb, const pointi &dest, texture2d &DestGrHandle) const DXLE_NOEXCEPT_OR_NOTHROW
 
int SetDrawScreen () const DXLE_NOEXCEPT_OR_NOTHROW_SINGLE
 描画先画面を設定する More...
 
 screen () DXLE_NOEXCEPT_OR_NOTHROW
 
 screen (const screen &other)=delete
 コピー禁止 More...
 
 screen (screen &&other) DXLE_NOEXCEPT_OR_NOTHROW
 所有権の譲渡 More...
 
screenoperator= (const screen &other)=delete
 コピー禁止 More...
 
screenoperator= (screen &&other) DXLE_NOEXCEPT_OR_NOTHROW
 所有権の譲渡 More...
 
- Public Member Functions inherited from dxle::graph2d::texture2d
DXLE_CONSTEXPR texture2d () DXLE_NOEXCEPT_OR_NOTHROW
 
 texture2d (const texture2d &other)=delete
 コピー禁止 More...
 
texture2doperator= (const texture2d &other)=delete
 
 texture2d (texture2d &&other) DXLE_NOEXCEPT_OR_NOTHROW
 所有権の譲渡 More...
 
texture2doperator= (texture2d &&other) DXLE_NOEXCEPT_OR_NOTHROW
 
void delete_this (bool LogOutFlag=false)
 
sizei size () const DXLE_NOEXCEPT_OR_NOTHROW
 グラフィックのサイズを得る More...
 
virtual ~texture2d () DXLE_NOEXCEPT_OR_NOTHROW
 
 texture2d (const TCHAR *FileName, int TextureFlag, int ReverseFlag, int SurfaceMode=DX_MOVIESURFACE_NORMAL)
 
 texture2d (const TCHAR *FileName, bool NotUse3DFlag=false)
 
texture2d DerivationGraph (int SrcX, int SrcY, int Width, int Height) const
 
texture2d DerivationGraph (const pointi &src, const sizei &size) const
 指定のグラフィックの指定部分だけを抜き出して新たなグラフィックを作成する More...
 
int GraphLock (int *PitchBuf, void **DataPointBuf, DxLib::COLORDATA **ColorDataPP=nullptr, bool WriteOnly=false)
 グラフィックメモリ領域のロック More...
 
int GraphUnLock ()
 グラフィックメモリ領域のロック解除 More...
 
int SetDeviceLostDeleteGraphFlag (bool DeleteFlag)
 グラフィックスデバイスのデバイスロスト発生時に指定のグラフィックを削除するかどうかを設定する( TRUE:デバイスロスト時に削除する FALSE:デバイスロストが発生しても削除しない ) More...
 
int GetGraphSize (int *SizeXBuf, int *SizeYBuf) const
 グラフィックのサイズを得る More...
 
sizei GetGraphSize () const
 グラフィックのサイズを得る More...
 
int GetGraphTextureSize (int *SizeXBuf, int *SizeYBuf) const
 グラフィックが持つ一つ目のテクスチャのサイズを得る More...
 
sizei GetGraphTextureSize () const
 グラフィックが持つ一つ目のテクスチャのサイズを得る More...
 
int GetGraphMipmapCount () const
 グラフィックが持つテクスチャのミップマップレベル数を取得する More...
 
int GetGraphFilePath (TCHAR FilePathBuffer[]) const
 グラフィックが画像ファイルから読み込まれていた場合、その画像のファイルパスを取得する More...
 
tstring GetGraphFilePath () const
 グラフィックが画像ファイルから読み込まれていた場合、その画像のファイルパスを取得する More...
 
int DrawGraph (int x, int y, bool TransFlag) const
 画像の等倍描画 More...
 
int DrawGraph (const pointi &p, bool TransFlag) const
 画像の等倍描画 More...
 
int DrawExtendGraph (int x1, int y1, int x2, int y2, bool TransFlag) const
 画像の拡大描画 More...
 
int DrawExtendGraph (const pointi &lu, const pointi &rb, bool TransFlag) const
 画像の拡大描画 More...
 
int DrawRotaGraph (int x, int y, double ExRate, double Angle, bool TransFlag, bool TurnFlag=false) const
 画像の回転描画 More...
 
int DrawRotaGraph (const pointi &p, double ExRate, double Angle, bool TransFlag, bool TurnFlag=false) const
 画像の回転描画 More...
 
int DrawRotaGraph2 (int x, int y, int cx, int cy, double ExtRate, double Angle, bool TransFlag, bool TurnFlag=false) const
 画像の回転描画2( 回転中心指定付き ) More...
 
int DrawRotaGraph2 (const pointi &p, const pointi &c, double ExtRate, double Angle, bool TransFlag, bool TurnFlag=false) const
 画像の回転描画2( 回転中心指定付き ) More...
 
int DrawRotaGraph3 (int x, int y, int cx, int cy, double ExtRateX, double ExtRateY, double Angle, bool TransFlag, bool TurnFlag=FALSE) const
 画像の回転描画3( 回転中心指定付き+縦横拡大率別指定版 ) More...
 
int DrawRotaGraph3 (const pointi &p, const pointi &c, double ExtRateX, double ExtRateY, double Angle, bool TransFlag, bool TurnFlag=FALSE) const
 画像の回転描画3( 回転中心指定付き+縦横拡大率別指定版 ) More...
 
int DrawModiGraph (int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, bool TransFlag) const
 画像の自由変形描画 More...
 
int DrawModiGraph (const std::array< pointi, 4 > &ps, bool TransFlag) const
 画像の自由変形描画 More...
 
int DrawTurnGraph (int x, int y, bool TransFlag) const
 画像の左右反転描画 More...
 
int DrawTurnGraph (const pointi &p, bool TransFlag) const
 画像の左右反転描画 More...
 
int DrawExtendTurnGraph (int x1, int y1, int x2, int y2, bool TransFlag) const
 画像の拡大左右反転描画 More...
 
int DrawExtendTurnGraph (const pointi &lu, const pointi &rb, bool TransFlag) const
 画像の拡大左右反転描画 More...
 
int DrawGraphF (float xf, float yf, bool TransFlag) const
 画像の描画( 座標指定が float 版 ) More...
 
int DrawGraphF (const pointf &p, bool TransFlag) const
 画像の描画( 座標指定が float 版 ) More...
 
int DrawExtendGraphF (float x1f, float y1f, float x2f, float y2, bool TransFlag) const
 画像の拡大描画( 座標指定が float 版 ) More...
 
int DrawExtendGraphF (const pointf &lu, const pointf &rb, bool TransFlag) const
 画像の拡大描画( 座標指定が float 版 ) More...
 
int DrawRotaGraphF (float xf, float yf, double ExRate, double Angle, bool TransFlag, bool TurnFlag=FALSE) const
 画像の回転描画( 座標指定が float 版 ) More...
 
int DrawRotaGraphF (const pointf &p, double ExRate, double Angle, bool TransFlag, bool TurnFlag=FALSE) const
 画像の回転描画( 座標指定が float 版 ) More...
 
int DrawRotaGraph2F (float xf, float yf, float cxf, float cyf, double ExtRate, double Angle, bool TransFlag, bool TurnFlag=FALSE) const
 画像の回転描画2( 回転中心指定付き )( 座標指定が float 版 ) More...
 
int DrawRotaGraph2F (const pointf &p, const pointf &c, double ExtRate, double Angle, bool TransFlag, bool TurnFlag=FALSE) const
 画像の回転描画2( 回転中心指定付き )( 座標指定が float 版 ) More...
 
int DrawRotaGraph3F (float xf, float yf, float cxf, float cyf, double ExtRateX, double ExtRateY, double Angle, bool TransFlag, bool TurnFlag=FALSE) const
 画像の回転描画3( 回転中心指定付き+縦横拡大率別指定版 )( 座標指定が float 版 ) More...
 
int DrawRotaGraph3F (const pointf &p, const pointf &c, double ExtRateX, double ExtRateY, double Angle, bool TransFlag, bool TurnFlag=FALSE) const
 画像の回転描画3( 回転中心指定付き+縦横拡大率別指定版 )( 座標指定が float 版 ) More...
 
int DrawModiGraphF (float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, bool TransFlag) const
 画像の自由変形描画( 座標指定が float 版 ) More...
 
int DrawModiGraphF (const std::array< pointf, 4 > &ps, bool TransFlag) const
 画像の自由変形描画( 座標指定が float 版 ) More...
 
int DrawTurnGraphF (float xf, float yf, bool TransFlag) const
 画像の左右反転描画( 座標指定が float 版 ) More...
 
int DrawTurnGraphF (const pointf &p, bool TransFlag) const
 画像の左右反転描画( 座標指定が float 版 ) More...
 
int DrawExtendTurnGraphF (float x1f, float y1f, float x2f, float y2f, bool TransFlag) const
 画像の拡大左右反転描画( 座標指定が float 版 ) More...
 
int DrawExtendTurnGraphF (const pointf &lu, const pointf &rb, bool TransFlag) const
 画像の拡大左右反転描画( 座標指定が float 版 ) More...
 
int filter_mono (int16_t Cb, int16_t Cr)
 
int filter_gaussian (uint16_t PixelWidth, int Param)
 
int filter_down_scale (uint8_t DivNum)
 
int filter_bright_clip (bright_clip_mode clipmode, uint8_t clip_pram, unsigned int fillcolor, uint8_t fillalpha)
 
int filter_HSB (bool HueType, int16_t Hue, int Saturation, int16_t Bright)
 
int filter_invert ()
 
int filter_level (uint8_t min, uint8_t max, int Gamma, uint8_t Aftermin, uint8_t Aftermax)
 
int filter_two_color (uint8_t threshold, unsigned int LowColor, uint8_t LowAlpha, unsigned int HighColor, uint8_t HighAlpha)
 

Static Public Member Functions

static screen MakeScreen (int SizeX, int SizeY, bool UseAlphaChannel=false) DXLE_NOEXCEPT_OR_NOTHROW
 SetDrawScreen で描画対象にできるグラフィックを作成する More...
 
static screen MakeScreen (const sizei &size, bool UseAlphaChannel=false) DXLE_NOEXCEPT_OR_NOTHROW
 SetDrawScreen で描画対象にできるグラフィックを作成する More...
 
- Static Public Member Functions inherited from dxle::graph2d::texture2d
static texture2d MakeGraph (int SizeX, int SizeY, bool NotUse3DFlag=false)
 
static texture2d MakeGraph (const sizei &size, bool NotUse3DFlag=false)
 
static texture2d DerivationGraph (int SrcX, int SrcY, int Width, int Height, const texture2d &SrcGraphHandle)
 指定のグラフィックの指定部分だけを抜き出して新たなグラフィックを作成する More...
 
static texture2d DerivationGraph (const pointi &src, const sizei &size, const texture2d &SrcGraphHandle)
 指定のグラフィックの指定部分だけを抜き出して新たなグラフィックを作成する More...
 
static texture2d LoadBmpToGraph (const TCHAR *FileName, int TextureFlag, int ReverseFlag, int SurfaceMode=DX_MOVIESURFACE_NORMAL)
 
static texture2d LoadBmpToGraph (const dxle::tstring &FileName, int TextureFlag, int ReverseFlag, int SurfaceMode=DX_MOVIESURFACE_NORMAL)
 
static texture2d LoadGraph (const TCHAR *FileName, bool NotUse3DFlag=false)
 
static texture2d LoadGraph (const dxle::tstring &FileName, bool NotUse3DFlag=false)
 
static texture2d LoadReverseGraph (const TCHAR *FileName, bool NotUse3DFlag=false)
 
static texture2d LoadReverseGraph (const dxle::tstring &FileName, bool NotUse3DFlag=false)
 
static texture2d CreateGraphFromMem (const void *RGBFileImage, int RGBFileImageSize, const void *AlphaFileImage=nullptr, int AlphaFileImageSize=0, bool TextureFlag=true, bool ReverseFlag=false)
 
static int ReCreateGraphFromMem (const void *RGBFileImage, int RGBFileImageSize, texture2d &GrHandle, const void *AlphaFileImage=nullptr, int AlphaFileImageSize=0, bool TextureFlag=true, bool ReverseFlag=false)
 
static texture2d CreateDXGraph (const DxLib::BASEIMAGE *RgbBaseImage, const DxLib::BASEIMAGE *AlphaBaseImage, bool TextureFlag)
 
static texture2d CreateGraphFromGraphImage (const DxLib::BASEIMAGE *RgbBaseImage, bool TextureFlag=true, bool ReverseFlag=false)
 
static texture2d CreateGraphFromGraphImage (const DxLib::BASEIMAGE *RgbBaseImage, const DxLib::BASEIMAGE *AlphaBaseImage, bool TextureFlag=true, bool ReverseFlag=false)
 
static int ReCreateGraphFromGraphImage (const DxLib::BASEIMAGE *RgbBaseImage, texture2d &GrHandle, bool TextureFlag=true, bool ReverseFlag=false)
 
static int ReCreateGraphFromGraphImage (const DxLib::BASEIMAGE *RgbBaseImage, const DxLib::BASEIMAGE *AlphaBaseImage, texture2d &GrHandle, bool TextureFlag=true, bool ReverseFlag=false)
 
static texture2d CreateGraph (int Width, int Height, int Pitch, const void *RGBImage, const void *AlphaImage=nullptr, const texture2d &GrHandle=texture2d())
 
static texture2d CreateGraph (const sizei &size, int Pitch, const void *RGBImage, const void *AlphaImage=nullptr, const texture2d &GrHandle=texture2d())
 
static int ReCreateGraph (int Width, int Height, int Pitch, const void *RGBImage, texture2d &GrHandle, const void *AlphaImage=nullptr)
 
static int ReCreateGraph (const sizei &size, int Pitch, const void *RGBImage, texture2d &GrHandle, const void *AlphaImage=nullptr)
 
static texture2d CreateGraphFromBaseImage (const DxLib::BASEIMAGE *BaseImage)
 
static texture2d CreateGraphFromRectBaseImage (const DxLib::BASEIMAGE *BaseImage, int x, int y, int SizeX, int SizeY)
 
static texture2d CreateGraphFromRectBaseImage (const DxLib::BASEIMAGE *BaseImage, const pointi &pos, const sizei &size)
 基本イメージデータの指定の領域を使ってグラフィックを作成する More...
 
static int ReCreateGraphFromBaseImage (const DxLib::BASEIMAGE *BaseImage, texture2d &GrHandle)
 基本イメージデータから既存のグラフィックに画像データを転送する More...
 
static int ReCreateGraphFromRectBaseImage (const DxLib::BASEIMAGE *BaseImage, int x, int y, int SizeX, int SizeY, texture2d &GrHandle)
 基本イメージデータの指定の領域を使って既存のグラフィックに画像データを転送する More...
 
static int ReCreateGraphFromRectBaseImage (const DxLib::BASEIMAGE *BaseImage, const pointi &pos, const sizei &size, texture2d &GrHandle)
 基本イメージデータの指定の領域を使って既存のグラフィックに画像データを転送する More...
 
static int ReloadGraph (const TCHAR *FileName, texture2d &GrHandle, bool ReverseFlag=false)
 画像ファイルからグラフィックへ画像データを転送する More...
 
static int ReloadGraph (const dxle::tstring &FileName, texture2d &GrHandle, bool ReverseFlag=false)
 画像ファイルからグラフィックへ画像データを転送する More...
 
static int ReloadReverseGraph (const TCHAR *FileName, texture2d &GrHandle)
 ReloadGraph の画像反転処理追加版 More...
 
static int ReloadReverseGraph (const dxle::tstring &FileName, texture2d &GrHandle)
 ReloadGraph の画像反転処理追加版 More...
 

Protected Member Functions

 screen (int handle, bool UseAlphaChannel)
 

Additional Inherited Members

 for filter_bright_clip(texture2d and screen_c ) More...

Detailed Description

描画可能画像クラス

Definition at line 334 of file texture2d.hpp.

Constructor & Destructor Documentation

§ screen() [1/4]

dxle::graph2d::screen::screen ( )
inline

Definition at line 380 of file texture2d.hpp.

§ screen() [2/4]

dxle::graph2d::screen::screen ( const screen other)
delete

コピー禁止

§ screen() [3/4]

dxle::graph2d::screen::screen ( screen &&  other)
inline

所有権の譲渡

Definition at line 384 of file texture2d.hpp.

§ screen() [4/4]

dxle::graph2d::screen::screen ( int  handle,
bool  UseAlphaChannel 
)
inlineprotected

Definition at line 391 of file texture2d.hpp.

Member Function Documentation

§ BltDrawValidGraph() [1/2]

int dxle::graph2d::screen::BltDrawValidGraph ( int  x1,
int  y1,
int  x2,
int  y2,
int  DestX,
int  DestY,
texture2d DestGrHandle 
) const
inline

SetDrawScreen で描画対象にできるグラフィックハンドルから指定領域の画像情報を別のグラフィックハンドルに転送する

Parameters
x1転送元の矩形の左座標
y1転送元の矩形の上座標
x2転送元の矩形の右座標
y2転送元の矩形の下座標
DestX,DestY転送先の矩形の左上座標
DestGrHandle転送先の画像

Definition at line 369 of file texture2d.hpp.

§ BltDrawValidGraph() [2/2]

int dxle::graph2d::screen::BltDrawValidGraph ( const pointi lu,
const pointi rb,
const pointi dest,
texture2d DestGrHandle 
) const
inline

SetDrawScreen で描画対象にできるグラフィックハンドルから指定領域の画像情報を別のグラフィックハンドルに転送する

Parameters
lu転送元の矩形の左上座標
rb転送元の矩形の右下座標
dest転送先の矩形の左上座標
DestGrHandle転送先の画像

Definition at line 375 of file texture2d.hpp.

§ clone()

std::unique_ptr<texture2d> dxle::graph2d::screen::clone ( ) const
inlineoverridevirtual

画像を複製する

Reimplemented from dxle::graph2d::texture2d.

Definition at line 338 of file texture2d.hpp.

§ cloneSc()

std::unique_ptr< screen > dxle::graph2d::screen::cloneSc ( ) const
inline

画像を複製する

Definition at line 137 of file texture2d.hpp.

§ CopyGraphZBufferImage()

int dxle::graph2d::screen::CopyGraphZBufferImage ( screen ToGraph) const
inline

グラフィックのZバッファの状態を別のグラフィックのZバッファにコピーする *thisはZバッファを持っている描画対象にできるグラフィック

Parameters
ToGraph*thisとサイズが同じであり、且つマルチサンプリング( アンチエイリアス )設定が無い、Zバッファを持っている描画対象にできるグラフィック

Definition at line 361 of file texture2d.hpp.

§ draw_on_this()

template<typename Func_T >
screen & dxle::graph2d::screen::draw_on_this ( Func_T &&  draw_func)

Definition at line 115 of file texture2d.hpp.

§ MakeScreen() [1/2]

static screen dxle::graph2d::screen::MakeScreen ( int  SizeX,
int  SizeY,
bool  UseAlphaChannel = false 
)
inlinestatic

SetDrawScreen で描画対象にできるグラフィックを作成する

Definition at line 345 of file texture2d.hpp.

§ MakeScreen() [2/2]

static screen dxle::graph2d::screen::MakeScreen ( const sizei &  size,
bool  UseAlphaChannel = false 
)
inlinestatic

SetDrawScreen で描画対象にできるグラフィックを作成する

Definition at line 347 of file texture2d.hpp.

§ operator=() [1/2]

screen& dxle::graph2d::screen::operator= ( const screen other)
delete

コピー禁止

§ operator=() [2/2]

screen& dxle::graph2d::screen::operator= ( screen &&  other)
inline

所有権の譲渡

Definition at line 388 of file texture2d.hpp.

§ SetDrawScreen()

int dxle::graph2d::screen::SetDrawScreen ( ) const
inline

描画先画面を設定する

Definition at line 377 of file texture2d.hpp.

§ SetUseGraphZBuffer()

int dxle::graph2d::screen::SetUseGraphZBuffer ( bool  UseFlag,
int  BitDepth = -1 
)
inline

グラフィック専用のZバッファを持つかどうかを設定する

Parameters
UseFlag専用のZバッファを持つかどうか( true:持つ( デフォルト ) false:持たない )
BitDepthビット深度( 16 or 24 or 32 ) )

Definition at line 357 of file texture2d.hpp.


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