Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Red-XIII

Pages: [1] 2
1
General / Re: Resource textures
« on: April 15, 2015, 06:31:22 pm »
That's a nice bit of code. I did mine in C# for obvious reasons, lol. By the way I find that using characters for the image data uses less memory, and is more compact, I think Gimp did that exact thing.

2
General / Re: Resource textures
« on: April 15, 2015, 09:02:34 am »
I can tell you, it was not 15 lines of code, but it was a nice experience, lol. If you want to see how far mine turned out, here it is.

3
General / Re: Setting an SFML Icon
« on: April 15, 2015, 07:15:51 am »
Hmm... the issue seems to be coming from Paint.NET. The image is copied as is into an int array, so it must be Paint.NET that's rotating the image.


4
General / Re: Setting an SFML Icon
« on: April 15, 2015, 02:46:17 am »
Lol I don't want to have to rotate an image 90 degrees to the right every time I save it as a integer table. Alright, i'll check to see how it imports in Paint.NET after exporting it as an integer table, maybe that will help show me were the error is.

5
General / Setting an SFML Icon
« on: April 15, 2015, 02:37:42 am »
Lol, okay so... I made a plugin for Paint.NET to save a data table from an image as single byte integers that are unsigned, each 4 numbers is in the format of RGBA. When I placed the data in my program, and set the icon data for the Render Window it oddly rotates the image by 90 degrees to the left.



Icon.cpp
(click to show/hide)

Icon.h
(click to show/hide)

Apollo.cpp
(click to show/hide)

6
General / Re: Resource textures
« on: April 14, 2015, 10:52:21 pm »
It's not rocket science, you're right, but I merely asked for a link. I've looked up on how to do it before, but nothing really came up that were helpful to me. Gimp no longer does C Exporting by the way, I already tried, I am however working on alternative with Paint.Net as a File Type Plugin, if you would like a copy of the plugin when i'm finished just PM me.

7
General / Re: C++ Problem
« on: April 14, 2015, 07:35:15 pm »
Oh I see, interesting, I thought pointers were the only way. My apologies.  :)

8
General / Re: C++ Problem
« on: April 14, 2015, 07:26:40 pm »
No, references will not help with his problem, he needs to use pointers, otherwise hes just copying the value, and not accessing the direct value.

9
General / Re: Resource textures
« on: April 14, 2015, 07:14:23 pm »
If you figure this out, could you post a link to the answer?  :)

10
General / Re: C++ Problem
« on: April 14, 2015, 07:08:06 pm »
To be more specific, you should look into pointers. That should help you figure out your problem, and you can continue to experience software engineering with SFML.

11
General / Re: AW: Unresolved External Symbol Error
« on: April 10, 2015, 11:25:46 pm »
If you link static, did you define SFML_STATIC?

God I feel dumb lol, I figured out why you guys use that macro. You use it to do "__declspec(dllexport)" if "SFML_STATIC" is not defined. I had recently tried doing the static libraries, but that macro had caused those errors.

12
General / Re: Unresolved External Symbol Error
« on: April 10, 2015, 09:30:23 am »
Actually it's Dynamic. I got it working before, but I did something wrong i'm unsure of. I haven't done C++ in quite a long time, even then I didn't learn much because it was too overwhelming for me. So I worked up to it by doing C# and Java.

13
General / Re: Combining Static Libraries
« on: April 10, 2015, 03:09:45 am »
It's not imaginary, it saves time, and effort.
I'm curious, on what scale are we talking here? Seconds? Minutes? Hours perhaps? As a "semi-scientist" I am inclined to ask people strange questions at times in order to fully understand their thought process. Please don't take it personally.
If it's impossible then i'll go with dynamic libraries.
We are programmers, we make machines do our bidding by feeding them with instructions generated from code, and considering SFML is under zlib, nothing is impossible ;). If you are really hell-bent on achieving this, then you will eventually figure it out yourself. All eXpl0it3r and I can hope for is that once you discover how it is done, you will also realize why it is a bad idea to do it :).

To be honest I couldn't say. Maybe a couple of minutes, it is kind of annoying to add libraries and includes. It's not only that, but I also wanted it to be static, so that my Engine could be static as well for security reasons, but i'm sure I must be wrong in some way.

Well when I do, I may or may not find it bad depending on the circumstances as always.

Thank you for not being abruptly rude about it though, I appreciate that.  :)

14
General / Unresolved External Symbol Error [Solved]
« on: April 10, 2015, 02:52:16 am »
I'm not sure what I did wrong here, can anyone help me, along with that, if you have any tips I would appreciate any, also If you need me to post the Engine class, just let me know.

Apollo.h
(click to show/hide)

Apollo.cpp
(click to show/hide)

Main.cpp
(click to show/hide)

Error
1>------ Build started: Project: Apollo, Configuration: Release Win32 ------
1>Apollo.obj : error LNK2001: unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B)
1>Apollo.obj : error LNK2001: unresolved external symbol "public: static class sf::Color const sf::Color::Red" (?Red@Color@sf@@2V12@B)
1>C:\Users\XXXXX XXXXXX\documents\visual studio 2013\Projects\Advanced Protocol Software\Release\Apollo.exe : fatal error LNK1120: 2 unresolved externals
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

15
General / Re: Combining Static Libraries
« on: April 08, 2015, 01:19:50 am »
It's not imaginary, it saves time, and effort. If it's impossible then i'll go with dynamic libraries.

Pages: [1] 2