Commits

Alex Szpakowski committed ad372cf

Removed some unused functions and fixed up some wrap_ headers

Comments (0)

Files changed (9)

src/common/Variant.cpp

 
 extern StringMap<Type, TYPE_MAX_ENUM> types;
 
-love::Type extractudatatype(lua_State *L, int idx)
+static love::Type extractudatatype(lua_State *L, int idx)
 {
 	Type t = INVALID_ID;
 	if (!lua_isuserdata(L, idx))

src/common/runtime.cpp

 	return ret;
 }
 
-int luax_strtofile(lua_State *L, int idx)
-{
-	return luax_convobj(L, idx, "filesystem", "newFile");
-}
-
-int luax_filetodata(lua_State *L, int idx)
-{
-	return luax_convobj(L, idx, "filesystem", "read");
-}
-
 int luax_insist(lua_State *L, int idx, const char *k)
 {
 	// Convert to absolute index if necessary.

src/modules/graphics/opengl/Graphics.cpp

 	return height;
 }
 
-int Graphics::getRenderWidth() const
-{
-	if (Canvas::current)
-		return Canvas::current->getWidth();
-
-	return getWidth();
-}
-
-int Graphics::getRenderHeight() const
-{
-	if (Canvas::current)
-		return Canvas::current->getHeight();
-
-	return getHeight();
-}
-
 bool Graphics::isCreated() const
 {
 	return created;

src/modules/graphics/opengl/Graphics.h

 
 private:
 
-	int getRenderWidth() const;
-	int getRenderHeight() const;
-
 	Font *currentFont;
 	love::window::Window *currentWindow;
 

src/modules/graphics/opengl/wrap_Graphics.h

 int w_setScissor(lua_State *L);
 int w_getScissor(lua_State *L);
 int w_setStencil(lua_State *L);
+int w_setInvertedStencil(lua_State *L);
 int w_getMaxImageSize(lua_State *L);
 int w_newImage(lua_State *L);
 int w_newGeometry(lua_State *L);
 int w_rectangle(lua_State *L);
 int w_circle(lua_State *L);
 int w_arc(lua_State *L);
+int w_polygon(lua_State *L);
 int w_push(lua_State *L);
 int w_pop(lua_State *L);
 int w_rotate(lua_State *L);

src/modules/graphics/opengl/wrap_Image.h

 int w_Image_getHeight(lua_State *L);
 int w_Image_getDimensions(lua_State *L);
 int w_Image_setFilter(lua_State *L);
-int w_image_getFilter(lua_State *L);
+int w_Image_getFilter(lua_State *L);
 int w_Image_setMipmapFilter(lua_State *L);
 int w_Image_getMipmapFilter(lua_State *L);
 int w_Image_setWrap(lua_State *L);

src/modules/graphics/opengl/wrap_Shader.h

 int w_Shader_sendFloat(lua_State *L);
 int w_Shader_sendMatrix(lua_State *L);
 int w_Shader_sendImage(lua_State *L);
+int w_Shader_sendCanvas(lua_State *L);
 int w_Shader_send(lua_State *L);
 extern "C" int luaopen_shader(lua_State *L);
 

src/modules/sound/lullaby/VorbisDecoder.cpp

 /**
  * CALLBACK FUNCTIONS
  **/
-int vorbisClose(void *	/* ptr to the data that the vorbis files need*/)
+static int vorbisClose(void *	/* ptr to the data that the vorbis files need*/)
 {
 	// Does nothing (handled elsewhere)
 	return 1;
 }
 
-size_t vorbisRead(void *ptr		/* ptr to the data that the vorbis files need*/,
+static size_t vorbisRead(void *ptr	/* ptr to the data that the vorbis files need*/,
 				  size_t byteSize	/* how big a byte is*/,
 				  size_t sizeToRead	/* How much we can read*/,
 				  void *datasource	/* this is a pointer to the data we passed into ov_open_callbacks (our SOggFile struct*/)
 	return actualSizeToRead;
 }
 
-int vorbisSeek(void *datasource	/* ptr to the data that the vorbis files need*/,
+static int vorbisSeek(void *datasource	/* ptr to the data that the vorbis files need*/,
 			   ogg_int64_t offset	/*offset from the point we wish to seek to*/,
 			   int whence			/*where we want to seek to*/)
 {
 	return 0;
 }
 
-long vorbisTell(void *datasource	/* ptr to the data that the vorbis files need*/)
+static long vorbisTell(void *datasource	/* ptr to the data that the vorbis files need*/)
 {
 	SOggFile *vorbisData;
 	vorbisData = (SOggFile *) datasource;

src/modules/sound/wrap_SoundData.h

 {
 
 SoundData *luax_checksounddata(lua_State *L, int idx);
-int w_getSize(lua_State *L);
-int w_getChannels(lua_State *L);
-int w_getBitDepth(lua_State *L);
-int w_getSampleRate(lua_State *L);
-int w_getSampleCount(lua_State *L);
-int w_getDuration(lua_State *L);
-int w_setSample(lua_State *L);
-int w_getSample(lua_State *L);
+int w_SoundData_getChannels(lua_State *L);
+int w_SoundData_getBitDepth(lua_State *L);
+int w_SoundData_getSampleRate(lua_State *L);
+int w_SoundData_getSampleCount(lua_State *L);
+int w_SoundData_getDuration(lua_State *L);
+int w_SoundData_setSample(lua_State *L);
+int w_SoundData_getSample(lua_State *L);
 extern "C" int luaopen_sounddata(lua_State *L);
 
 } // sound