DxLibEx
dxle::graph2d::texture2d Class Reference

#include <texture2d.hpp>

Inheritance diagram for dxle::graph2d::texture2d:

Public Member Functions

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 std::unique_ptr< texture2dclone () const
 画像を複製する 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 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...
 

Friends

template<typename BuffT , typename OutFunc >
void gr_impl::LoadDivGraph_impl (OutFunc &&out_func, BuffT *HandleBuf, const TCHAR *FileName, int AllNum, const dxle::sizei &Num, const dxle::sizei &Size, bool NotUse3DFlag)
 

Related Functions

(Note that these are not member functions.)

enum  bright_clip_mode : int
 for filter_bright_clip(texture2d and screen_c ) More...
 

Detailed Description

Definition at line 61 of file texture2d.hpp.

Constructor & Destructor Documentation

§ texture2d() [1/5]

DXLE_CONSTEXPR dxle::graph2d::texture2d::texture2d ( )
inline

Definition at line 64 of file texture2d.hpp.

§ texture2d() [2/5]

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

コピー禁止

§ texture2d() [3/5]

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

所有権の譲渡

Definition at line 69 of file texture2d.hpp.

§ ~texture2d()

virtual dxle::graph2d::texture2d::~texture2d ( )
inlinevirtual

Definition at line 82 of file texture2d.hpp.

§ texture2d() [4/5]

dxle::graph2d::texture2d::texture2d ( const TCHAR *  FileName,
int  TextureFlag,
int  ReverseFlag,
int  SurfaceMode = DX_MOVIESURFACE_NORMAL 
)
inline

Create an image with a specific size Create an image form an image file

Definition at line 93 of file texture2d.hpp.

§ texture2d() [5/5]

dxle::graph2d::texture2d::texture2d ( const TCHAR *  FileName,
bool  NotUse3DFlag = false 
)
inline

Create an image form an image file

Definition at line 96 of file texture2d.hpp.

Member Function Documentation

§ clone()

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

画像を複製する

Reimplemented in dxle::graph2d::screen, and dxle::graph2d::animation_graph.

Definition at line 62 of file texture2d.hpp.

§ CreateDXGraph()

static texture2d dxle::graph2d::texture2d::CreateDXGraph ( const DxLib::BASEIMAGE *  RgbBaseImage,
const DxLib::BASEIMAGE *  AlphaBaseImage,
bool  TextureFlag 
)
inlinestatic

Determine the size of the basic image data and create a compatible graphics

Definition at line 145 of file texture2d.hpp.

§ CreateGraph() [1/2]

static texture2d dxle::graph2d::texture2d::CreateGraph ( int  Width,
int  Height,
int  Pitch,
const void *  RGBImage,
const void *  AlphaImage = nullptr,
const texture2d GrHandle = texture2d() 
)
inlinestatic

メモリ上のビットマップイメージからグラフィックを作成する Create a graphic from a bitmap image stored in the computer memory

Definition at line 161 of file texture2d.hpp.

§ CreateGraph() [2/2]

static texture2d dxle::graph2d::texture2d::CreateGraph ( const sizei &  size,
int  Pitch,
const void *  RGBImage,
const void *  AlphaImage = nullptr,
const texture2d GrHandle = texture2d() 
)
inlinestatic

メモリ上のビットマップイメージからグラフィックを作成する Create a graphic from a bitmap image stored in the computer memory

Definition at line 164 of file texture2d.hpp.

§ CreateGraphFromBaseImage()

static texture2d dxle::graph2d::texture2d::CreateGraphFromBaseImage ( const DxLib::BASEIMAGE *  BaseImage)
inlinestatic

基本イメージデータからグラフィックを作成する Create a graphic from a basic image data

Definition at line 181 of file texture2d.hpp.

§ CreateGraphFromGraphImage() [1/2]

static texture2d dxle::graph2d::texture2d::CreateGraphFromGraphImage ( const DxLib::BASEIMAGE *  RgbBaseImage,
bool  TextureFlag = true,
bool  ReverseFlag = false 
)
inlinestatic

Create a graphic from a basic image data

Definition at line 148 of file texture2d.hpp.

§ CreateGraphFromGraphImage() [2/2]

static texture2d dxle::graph2d::texture2d::CreateGraphFromGraphImage ( const DxLib::BASEIMAGE *  RgbBaseImage,
const DxLib::BASEIMAGE *  AlphaBaseImage,
bool  TextureFlag = true,
bool  ReverseFlag = false 
)
inlinestatic

Create a graphic from a basic image data

Definition at line 151 of file texture2d.hpp.

§ CreateGraphFromMem()

static texture2d dxle::graph2d::texture2d::CreateGraphFromMem ( const void *  RGBFileImage,
int  RGBFileImageSize,
const void *  AlphaFileImage = nullptr,
int  AlphaFileImageSize = 0,
bool  TextureFlag = true,
bool  ReverseFlag = false 
)
inlinestatic

Create an graphic from an image stored in the computer memory

Definition at line 138 of file texture2d.hpp.

§ CreateGraphFromRectBaseImage() [1/2]

static texture2d dxle::graph2d::texture2d::CreateGraphFromRectBaseImage ( const DxLib::BASEIMAGE *  BaseImage,
int  x,
int  y,
int  SizeX,
int  SizeY 
)
inlinestatic

基本イメージデータの指定の領域を使ってグラフィックを作成する Create a graphic from a degsinated area clipped from a basic image data

Definition at line 184 of file texture2d.hpp.

§ CreateGraphFromRectBaseImage() [2/2]

static texture2d dxle::graph2d::texture2d::CreateGraphFromRectBaseImage ( const DxLib::BASEIMAGE *  BaseImage,
const pointi pos,
const sizei &  size 
)
inlinestatic

基本イメージデータの指定の領域を使ってグラフィックを作成する

Definition at line 186 of file texture2d.hpp.

§ delete_this()

void dxle::graph2d::texture2d::delete_this ( bool  LogOutFlag = false)
inline

Delete this image

Definition at line 74 of file texture2d.hpp.

§ DerivationGraph() [1/4]

static texture2d dxle::graph2d::texture2d::DerivationGraph ( int  SrcX,
int  SrcY,
int  Width,
int  Height,
const texture2d SrcGraphHandle 
)
inlinestatic

指定のグラフィックの指定部分だけを抜き出して新たなグラフィックを作成する

Definition at line 110 of file texture2d.hpp.

§ DerivationGraph() [2/4]

static texture2d dxle::graph2d::texture2d::DerivationGraph ( const pointi src,
const sizei &  size,
const texture2d SrcGraphHandle 
)
inlinestatic

指定のグラフィックの指定部分だけを抜き出して新たなグラフィックを作成する

Definition at line 112 of file texture2d.hpp.

§ DerivationGraph() [3/4]

texture2d dxle::graph2d::texture2d::DerivationGraph ( int  SrcX,
int  SrcY,
int  Width,
int  Height 
) const
inline

Definition at line 205 of file texture2d.hpp.

§ DerivationGraph() [4/4]

texture2d dxle::graph2d::texture2d::DerivationGraph ( const pointi src,
const sizei &  size 
) const
inline

指定のグラフィックの指定部分だけを抜き出して新たなグラフィックを作成する

Definition at line 207 of file texture2d.hpp.

§ DrawExtendGraph() [1/2]

int dxle::graph2d::texture2d::DrawExtendGraph ( int  x1,
int  y1,
int  x2,
int  y2,
bool  TransFlag 
) const
inline

画像の拡大描画

Definition at line 239 of file texture2d.hpp.

§ DrawExtendGraph() [2/2]

int dxle::graph2d::texture2d::DrawExtendGraph ( const pointi lu,
const pointi rb,
bool  TransFlag 
) const
inline

画像の拡大描画

Definition at line 241 of file texture2d.hpp.

§ DrawExtendGraphF() [1/2]

int dxle::graph2d::texture2d::DrawExtendGraphF ( float  x1f,
float  y1f,
float  x2f,
float  y2,
bool  TransFlag 
) const
inline

画像の拡大描画( 座標指定が float 版 )

Definition at line 272 of file texture2d.hpp.

§ DrawExtendGraphF() [2/2]

int dxle::graph2d::texture2d::DrawExtendGraphF ( const pointf lu,
const pointf rb,
bool  TransFlag 
) const
inline

画像の拡大描画( 座標指定が float 版 )

Definition at line 274 of file texture2d.hpp.

§ DrawExtendTurnGraph() [1/2]

int dxle::graph2d::texture2d::DrawExtendTurnGraph ( int  x1,
int  y1,
int  x2,
int  y2,
bool  TransFlag 
) const
inline

画像の拡大左右反転描画

Definition at line 263 of file texture2d.hpp.

§ DrawExtendTurnGraph() [2/2]

int dxle::graph2d::texture2d::DrawExtendTurnGraph ( const pointi lu,
const pointi rb,
bool  TransFlag 
) const
inline

画像の拡大左右反転描画

Definition at line 265 of file texture2d.hpp.

§ DrawExtendTurnGraphF() [1/2]

int dxle::graph2d::texture2d::DrawExtendTurnGraphF ( float  x1f,
float  y1f,
float  x2f,
float  y2f,
bool  TransFlag 
) const
inline

画像の拡大左右反転描画( 座標指定が float 版 )

Definition at line 296 of file texture2d.hpp.

§ DrawExtendTurnGraphF() [2/2]

int dxle::graph2d::texture2d::DrawExtendTurnGraphF ( const pointf lu,
const pointf rb,
bool  TransFlag 
) const
inline

画像の拡大左右反転描画( 座標指定が float 版 )

Definition at line 298 of file texture2d.hpp.

§ DrawGraph() [1/2]

int dxle::graph2d::texture2d::DrawGraph ( int  x,
int  y,
bool  TransFlag 
) const
inline

画像の等倍描画

Definition at line 235 of file texture2d.hpp.

§ DrawGraph() [2/2]

int dxle::graph2d::texture2d::DrawGraph ( const pointi p,
bool  TransFlag 
) const
inline

画像の等倍描画

Definition at line 237 of file texture2d.hpp.

§ DrawGraphF() [1/2]

int dxle::graph2d::texture2d::DrawGraphF ( float  xf,
float  yf,
bool  TransFlag 
) const
inline

画像の描画( 座標指定が float 版 )

Definition at line 268 of file texture2d.hpp.

§ DrawGraphF() [2/2]

int dxle::graph2d::texture2d::DrawGraphF ( const pointf p,
bool  TransFlag 
) const
inline

画像の描画( 座標指定が float 版 )

Definition at line 270 of file texture2d.hpp.

§ DrawModiGraph() [1/2]

int dxle::graph2d::texture2d::DrawModiGraph ( int  x1,
int  y1,
int  x2,
int  y2,
int  x3,
int  y3,
int  x4,
int  y4,
bool  TransFlag 
) const
inline

画像の自由変形描画

Definition at line 255 of file texture2d.hpp.

§ DrawModiGraph() [2/2]

int dxle::graph2d::texture2d::DrawModiGraph ( const std::array< pointi, 4 > &  ps,
bool  TransFlag 
) const
inline

画像の自由変形描画

Definition at line 257 of file texture2d.hpp.

§ DrawModiGraphF() [1/2]

int dxle::graph2d::texture2d::DrawModiGraphF ( float  x1,
float  y1,
float  x2,
float  y2,
float  x3,
float  y3,
float  x4,
float  y4,
bool  TransFlag 
) const
inline

画像の自由変形描画( 座標指定が float 版 )

Definition at line 288 of file texture2d.hpp.

§ DrawModiGraphF() [2/2]

int dxle::graph2d::texture2d::DrawModiGraphF ( const std::array< pointf, 4 > &  ps,
bool  TransFlag 
) const
inline

画像の自由変形描画( 座標指定が float 版 )

Definition at line 290 of file texture2d.hpp.

§ DrawRotaGraph() [1/2]

int dxle::graph2d::texture2d::DrawRotaGraph ( int  x,
int  y,
double  ExRate,
double  Angle,
bool  TransFlag,
bool  TurnFlag = false 
) const
inline

画像の回転描画

Definition at line 243 of file texture2d.hpp.

§ DrawRotaGraph() [2/2]

int dxle::graph2d::texture2d::DrawRotaGraph ( const pointi p,
double  ExRate,
double  Angle,
bool  TransFlag,
bool  TurnFlag = false 
) const
inline

画像の回転描画

Definition at line 245 of file texture2d.hpp.

§ DrawRotaGraph2() [1/2]

int dxle::graph2d::texture2d::DrawRotaGraph2 ( int  x,
int  y,
int  cx,
int  cy,
double  ExtRate,
double  Angle,
bool  TransFlag,
bool  TurnFlag = false 
) const
inline

画像の回転描画2( 回転中心指定付き )

Definition at line 247 of file texture2d.hpp.

§ DrawRotaGraph2() [2/2]

int dxle::graph2d::texture2d::DrawRotaGraph2 ( const pointi p,
const pointi c,
double  ExtRate,
double  Angle,
bool  TransFlag,
bool  TurnFlag = false 
) const
inline

画像の回転描画2( 回転中心指定付き )

Definition at line 249 of file texture2d.hpp.

§ DrawRotaGraph2F() [1/2]

int dxle::graph2d::texture2d::DrawRotaGraph2F ( float  xf,
float  yf,
float  cxf,
float  cyf,
double  ExtRate,
double  Angle,
bool  TransFlag,
bool  TurnFlag = FALSE 
) const
inline

画像の回転描画2( 回転中心指定付き )( 座標指定が float 版 )

Definition at line 280 of file texture2d.hpp.

§ DrawRotaGraph2F() [2/2]

int dxle::graph2d::texture2d::DrawRotaGraph2F ( const pointf p,
const pointf c,
double  ExtRate,
double  Angle,
bool  TransFlag,
bool  TurnFlag = FALSE 
) const
inline

画像の回転描画2( 回転中心指定付き )( 座標指定が float 版 )

Definition at line 282 of file texture2d.hpp.

§ DrawRotaGraph3() [1/2]

int dxle::graph2d::texture2d::DrawRotaGraph3 ( int  x,
int  y,
int  cx,
int  cy,
double  ExtRateX,
double  ExtRateY,
double  Angle,
bool  TransFlag,
bool  TurnFlag = FALSE 
) const
inline

画像の回転描画3( 回転中心指定付き+縦横拡大率別指定版 )

Definition at line 251 of file texture2d.hpp.

§ DrawRotaGraph3() [2/2]

int dxle::graph2d::texture2d::DrawRotaGraph3 ( const pointi p,
const pointi c,
double  ExtRateX,
double  ExtRateY,
double  Angle,
bool  TransFlag,
bool  TurnFlag = FALSE 
) const
inline

画像の回転描画3( 回転中心指定付き+縦横拡大率別指定版 )

Definition at line 253 of file texture2d.hpp.

§ DrawRotaGraph3F() [1/2]

int dxle::graph2d::texture2d::DrawRotaGraph3F ( float  xf,
float  yf,
float  cxf,
float  cyf,
double  ExtRateX,
double  ExtRateY,
double  Angle,
bool  TransFlag,
bool  TurnFlag = FALSE 
) const
inline

画像の回転描画3( 回転中心指定付き+縦横拡大率別指定版 )( 座標指定が float 版 )

Definition at line 284 of file texture2d.hpp.

§ DrawRotaGraph3F() [2/2]

int dxle::graph2d::texture2d::DrawRotaGraph3F ( const pointf p,
const pointf c,
double  ExtRateX,
double  ExtRateY,
double  Angle,
bool  TransFlag,
bool  TurnFlag = FALSE 
) const
inline

画像の回転描画3( 回転中心指定付き+縦横拡大率別指定版 )( 座標指定が float 版 )

Definition at line 286 of file texture2d.hpp.

§ DrawRotaGraphF() [1/2]

int dxle::graph2d::texture2d::DrawRotaGraphF ( float  xf,
float  yf,
double  ExRate,
double  Angle,
bool  TransFlag,
bool  TurnFlag = FALSE 
) const
inline

画像の回転描画( 座標指定が float 版 )

Definition at line 276 of file texture2d.hpp.

§ DrawRotaGraphF() [2/2]

int dxle::graph2d::texture2d::DrawRotaGraphF ( const pointf p,
double  ExRate,
double  Angle,
bool  TransFlag,
bool  TurnFlag = FALSE 
) const
inline

画像の回転描画( 座標指定が float 版 )

Definition at line 278 of file texture2d.hpp.

§ DrawTurnGraph() [1/2]

int dxle::graph2d::texture2d::DrawTurnGraph ( int  x,
int  y,
bool  TransFlag 
) const
inline

画像の左右反転描画

Definition at line 259 of file texture2d.hpp.

§ DrawTurnGraph() [2/2]

int dxle::graph2d::texture2d::DrawTurnGraph ( const pointi p,
bool  TransFlag 
) const
inline

画像の左右反転描画

Definition at line 261 of file texture2d.hpp.

§ DrawTurnGraphF() [1/2]

int dxle::graph2d::texture2d::DrawTurnGraphF ( float  xf,
float  yf,
bool  TransFlag 
) const
inline

画像の左右反転描画( 座標指定が float 版 )

Definition at line 292 of file texture2d.hpp.

§ DrawTurnGraphF() [2/2]

int dxle::graph2d::texture2d::DrawTurnGraphF ( const pointf p,
bool  TransFlag 
) const
inline

画像の左右反転描画( 座標指定が float 版 )

Definition at line 294 of file texture2d.hpp.

§ filter_bright_clip()

int dxle::graph2d::texture2d::filter_bright_clip ( bright_clip_mode  clipmode,
uint8_t  clip_pram,
unsigned int  fillcolor,
uint8_t  fillalpha 
)
inline

Definition at line 90 of file texture2d.hpp.

§ filter_down_scale()

int dxle::graph2d::texture2d::filter_down_scale ( uint8_t  DivNum)
inline

Definition at line 86 of file texture2d.hpp.

§ filter_gaussian()

int dxle::graph2d::texture2d::filter_gaussian ( uint16_t  PixelWidth,
int  Param 
)
inline

Definition at line 82 of file texture2d.hpp.

§ filter_HSB()

int dxle::graph2d::texture2d::filter_HSB ( bool  HueType,
int16_t  Hue,
int  Saturation,
int16_t  Bright 
)
inline

Definition at line 94 of file texture2d.hpp.

§ filter_invert()

int dxle::graph2d::texture2d::filter_invert ( )
inline

Definition at line 98 of file texture2d.hpp.

§ filter_level()

int dxle::graph2d::texture2d::filter_level ( uint8_t  min,
uint8_t  max,
int  Gamma,
uint8_t  Aftermin,
uint8_t  Aftermax 
)
inline

Definition at line 102 of file texture2d.hpp.

§ filter_mono()

int dxle::graph2d::texture2d::filter_mono ( int16_t  Cb,
int16_t  Cr 
)
inline

Definition at line 78 of file texture2d.hpp.

§ filter_two_color()

int dxle::graph2d::texture2d::filter_two_color ( uint8_t  threshold,
unsigned int  LowColor,
uint8_t  LowAlpha,
unsigned int  HighColor,
uint8_t  HighAlpha 
)
inline

Definition at line 106 of file texture2d.hpp.

§ GetGraphFilePath() [1/2]

int dxle::graph2d::texture2d::GetGraphFilePath ( TCHAR  FilePathBuffer[]) const
inline

グラフィックが画像ファイルから読み込まれていた場合、その画像のファイルパスを取得する

Definition at line 230 of file texture2d.hpp.

§ GetGraphFilePath() [2/2]

tstring dxle::graph2d::texture2d::GetGraphFilePath ( ) const
inline

グラフィックが画像ファイルから読み込まれていた場合、その画像のファイルパスを取得する

Definition at line 68 of file texture2d.hpp.

§ GetGraphMipmapCount()

int dxle::graph2d::texture2d::GetGraphMipmapCount ( ) const
inline

グラフィックが持つテクスチャのミップマップレベル数を取得する

Definition at line 228 of file texture2d.hpp.

§ GetGraphSize() [1/2]

int dxle::graph2d::texture2d::GetGraphSize ( int *  SizeXBuf,
int *  SizeYBuf 
) const
inline

グラフィックのサイズを得る

Definition at line 220 of file texture2d.hpp.

§ GetGraphSize() [2/2]

sizei dxle::graph2d::texture2d::GetGraphSize ( ) const
inline

グラフィックのサイズを得る

Definition at line 222 of file texture2d.hpp.

§ GetGraphTextureSize() [1/2]

int dxle::graph2d::texture2d::GetGraphTextureSize ( int *  SizeXBuf,
int *  SizeYBuf 
) const
inline

グラフィックが持つ一つ目のテクスチャのサイズを得る

Definition at line 224 of file texture2d.hpp.

§ GetGraphTextureSize() [2/2]

sizei dxle::graph2d::texture2d::GetGraphTextureSize ( ) const
inline

グラフィックが持つ一つ目のテクスチャのサイズを得る

Definition at line 226 of file texture2d.hpp.

§ GraphLock()

int dxle::graph2d::texture2d::GraphLock ( int *  PitchBuf,
void **  DataPointBuf,
DxLib::COLORDATA **  ColorDataPP = nullptr,
bool  WriteOnly = false 
)
inline

グラフィックメモリ領域のロック

Definition at line 214 of file texture2d.hpp.

§ GraphUnLock()

int dxle::graph2d::texture2d::GraphUnLock ( )
inline

グラフィックメモリ領域のロック解除

Definition at line 216 of file texture2d.hpp.

§ LoadBmpToGraph() [1/2]

static texture2d dxle::graph2d::texture2d::LoadBmpToGraph ( const TCHAR *  FileName,
int  TextureFlag,
int  ReverseFlag,
int  SurfaceMode = DX_MOVIESURFACE_NORMAL 
)
inlinestatic

Create an image from an image file

Definition at line 118 of file texture2d.hpp.

§ LoadBmpToGraph() [2/2]

static texture2d dxle::graph2d::texture2d::LoadBmpToGraph ( const dxle::tstring FileName,
int  TextureFlag,
int  ReverseFlag,
int  SurfaceMode = DX_MOVIESURFACE_NORMAL 
)
inlinestatic

Create an image from an image file

Definition at line 121 of file texture2d.hpp.

§ LoadGraph() [1/2]

static texture2d dxle::graph2d::texture2d::LoadGraph ( const TCHAR *  FileName,
bool  NotUse3DFlag = false 
)
inlinestatic

Create an image from an image file

Definition at line 124 of file texture2d.hpp.

§ LoadGraph() [2/2]

static texture2d dxle::graph2d::texture2d::LoadGraph ( const dxle::tstring FileName,
bool  NotUse3DFlag = false 
)
inlinestatic

Create an image from an image file

Definition at line 127 of file texture2d.hpp.

§ LoadReverseGraph() [1/2]

static texture2d dxle::graph2d::texture2d::LoadReverseGraph ( const TCHAR *  FileName,
bool  NotUse3DFlag = false 
)
inlinestatic

Create a reversed image from an image file

Definition at line 130 of file texture2d.hpp.

§ LoadReverseGraph() [2/2]

static texture2d dxle::graph2d::texture2d::LoadReverseGraph ( const dxle::tstring FileName,
bool  NotUse3DFlag = false 
)
inlinestatic

Create a reversed image from an image file

Definition at line 133 of file texture2d.hpp.

§ MakeGraph() [1/2]

static texture2d dxle::graph2d::texture2d::MakeGraph ( int  SizeX,
int  SizeY,
bool  NotUse3DFlag = false 
)
inlinestatic

Create an image with a specific size

Definition at line 105 of file texture2d.hpp.

§ MakeGraph() [2/2]

static texture2d dxle::graph2d::texture2d::MakeGraph ( const sizei &  size,
bool  NotUse3DFlag = false 
)
inlinestatic

Create an image with sizes

Definition at line 108 of file texture2d.hpp.

§ operator=() [1/2]

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

§ operator=() [2/2]

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

Definition at line 70 of file texture2d.hpp.

§ ReCreateGraph() [1/2]

static int dxle::graph2d::texture2d::ReCreateGraph ( int  Width,
int  Height,
int  Pitch,
const void *  RGBImage,
texture2d GrHandle,
const void *  AlphaImage = nullptr 
)
inlinestatic

メモリ上のビットマップイメージからグラフィックを再作成する Recreate a graphic from a bitmap image stored in the computer memory

Definition at line 167 of file texture2d.hpp.

§ ReCreateGraph() [2/2]

static int dxle::graph2d::texture2d::ReCreateGraph ( const sizei &  size,
int  Pitch,
const void *  RGBImage,
texture2d GrHandle,
const void *  AlphaImage = nullptr 
)
inlinestatic

メモリ上のビットマップイメージからグラフィックを再作成する Recreate a graphic from a bitmap image stored in the computer memory

Definition at line 170 of file texture2d.hpp.

§ ReCreateGraphFromBaseImage()

static int dxle::graph2d::texture2d::ReCreateGraphFromBaseImage ( const DxLib::BASEIMAGE *  BaseImage,
texture2d GrHandle 
)
inlinestatic

基本イメージデータから既存のグラフィックに画像データを転送する

Definition at line 188 of file texture2d.hpp.

§ ReCreateGraphFromGraphImage() [1/2]

static int dxle::graph2d::texture2d::ReCreateGraphFromGraphImage ( const DxLib::BASEIMAGE *  RgbBaseImage,
texture2d GrHandle,
bool  TextureFlag = true,
bool  ReverseFlag = false 
)
inlinestatic

Recreate a graphic from an existing basic image data

Definition at line 154 of file texture2d.hpp.

§ ReCreateGraphFromGraphImage() [2/2]

static int dxle::graph2d::texture2d::ReCreateGraphFromGraphImage ( const DxLib::BASEIMAGE *  RgbBaseImage,
const DxLib::BASEIMAGE *  AlphaBaseImage,
texture2d GrHandle,
bool  TextureFlag = true,
bool  ReverseFlag = false 
)
inlinestatic

Recreate a graphic from an existing basic image data

Definition at line 157 of file texture2d.hpp.

§ ReCreateGraphFromMem()

static int dxle::graph2d::texture2d::ReCreateGraphFromMem ( const void *  RGBFileImage,
int  RGBFileImageSize,
texture2d GrHandle,
const void *  AlphaFileImage = nullptr,
int  AlphaFileImageSize = 0,
bool  TextureFlag = true,
bool  ReverseFlag = false 
)
inlinestatic

Recreate an graphic from an existing image stored in the computer memory

Definition at line 141 of file texture2d.hpp.

§ ReCreateGraphFromRectBaseImage() [1/2]

static int dxle::graph2d::texture2d::ReCreateGraphFromRectBaseImage ( const DxLib::BASEIMAGE *  BaseImage,
int  x,
int  y,
int  SizeX,
int  SizeY,
texture2d GrHandle 
)
inlinestatic

基本イメージデータの指定の領域を使って既存のグラフィックに画像データを転送する

Definition at line 190 of file texture2d.hpp.

§ ReCreateGraphFromRectBaseImage() [2/2]

static int dxle::graph2d::texture2d::ReCreateGraphFromRectBaseImage ( const DxLib::BASEIMAGE *  BaseImage,
const pointi pos,
const sizei &  size,
texture2d GrHandle 
)
inlinestatic

基本イメージデータの指定の領域を使って既存のグラフィックに画像データを転送する

Definition at line 192 of file texture2d.hpp.

§ ReloadGraph() [1/2]

static int dxle::graph2d::texture2d::ReloadGraph ( const TCHAR *  FileName,
texture2d GrHandle,
bool  ReverseFlag = false 
)
inlinestatic

画像ファイルからグラフィックへ画像データを転送する

Definition at line 194 of file texture2d.hpp.

§ ReloadGraph() [2/2]

static int dxle::graph2d::texture2d::ReloadGraph ( const dxle::tstring FileName,
texture2d GrHandle,
bool  ReverseFlag = false 
)
inlinestatic

画像ファイルからグラフィックへ画像データを転送する

Definition at line 196 of file texture2d.hpp.

§ ReloadReverseGraph() [1/2]

static int dxle::graph2d::texture2d::ReloadReverseGraph ( const TCHAR *  FileName,
texture2d GrHandle 
)
inlinestatic

ReloadGraph の画像反転処理追加版

Definition at line 198 of file texture2d.hpp.

§ ReloadReverseGraph() [2/2]

static int dxle::graph2d::texture2d::ReloadReverseGraph ( const dxle::tstring FileName,
texture2d GrHandle 
)
inlinestatic

ReloadGraph の画像反転処理追加版

Definition at line 200 of file texture2d.hpp.

§ SetDeviceLostDeleteGraphFlag()

int dxle::graph2d::texture2d::SetDeviceLostDeleteGraphFlag ( bool  DeleteFlag)
inline

グラフィックスデバイスのデバイスロスト発生時に指定のグラフィックを削除するかどうかを設定する( TRUE:デバイスロスト時に削除する FALSE:デバイスロストが発生しても削除しない )

Definition at line 218 of file texture2d.hpp.

§ size()

sizei dxle::graph2d::texture2d::size ( ) const
inline

グラフィックのサイズを得る

Definition at line 77 of file texture2d.hpp.

Friends And Related Function Documentation

§ bright_clip_mode

enum bright_clip_mode : int
related

for filter_bright_clip(texture2d and screen_c )

Definition at line 54 of file texture2d.hpp.

§ gr_impl::LoadDivGraph_impl

template<typename BuffT , typename OutFunc >
void gr_impl::LoadDivGraph_impl ( OutFunc &&  out_func,
BuffT *  HandleBuf,
const TCHAR *  FileName,
int  AllNum,
const dxle::sizei &  Num,
const dxle::sizei &  Size,
bool  NotUse3DFlag 
)
friend

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