龍神録プログラミングにて
Posted: 2011年4月18日(月) 11:21
はじめまして、4章のキャラを描画してみようのところで、このようなエラーが出て画像が表示されないのですが、どなたか教えていただけないでしょうか?
よろしくお願いします。
struct.h
typedef struct{
int flag;
int cnt;
int power;
int point;
int score;
int num;
int mutekicnt;
int shot_mode;
int img;
int slow;
double x,y;
}ch_t;
graph.cpp
#include"../heder/GV.h"
extern ch_t ch;
extern int img_ch[1][8];
void graph_ch(){
DrawRotaGraphF(ch.x,ch.y,1.0f,0.0f,img_ch[0][ch.img],TRUE);
}
void graph_main(){
graph_ch();
}
>------ ビルド開始: プロジェクト: sugimotokun, 構成: Debug Win32 ------
1> graph.cpp
1>\visual studio 2010\projects\sugimotokun\sorce\graph.cpp(7): warning C4244: '引数' : 'double' から 'float' への変換です。データが失われる可能性があります。
1>\visual studio 2010\projects\sugimotokun\sorce\graph.cpp(7): warning C4244: '引数' : 'double' から 'float' への変換です。データが失われる可能性があります。
========== ビルド: 1 正常終了、0 失敗、0 更新不要、0 スキップ ==========
よろしくお願いします。
struct.h
typedef struct{
int flag;
int cnt;
int power;
int point;
int score;
int num;
int mutekicnt;
int shot_mode;
int img;
int slow;
double x,y;
}ch_t;
graph.cpp
#include"../heder/GV.h"
extern ch_t ch;
extern int img_ch[1][8];
void graph_ch(){
DrawRotaGraphF(ch.x,ch.y,1.0f,0.0f,img_ch[0][ch.img],TRUE);
}
void graph_main(){
graph_ch();
}
>------ ビルド開始: プロジェクト: sugimotokun, 構成: Debug Win32 ------
1> graph.cpp
1>\visual studio 2010\projects\sugimotokun\sorce\graph.cpp(7): warning C4244: '引数' : 'double' から 'float' への変換です。データが失われる可能性があります。
1>\visual studio 2010\projects\sugimotokun\sorce\graph.cpp(7): warning C4244: '引数' : 'double' から 'float' への変換です。データが失われる可能性があります。
========== ビルド: 1 正常終了、0 失敗、0 更新不要、0 スキップ ==========