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 - Fernando

Pages: [1]
1
DotNet / Re: New to SFML .NET -- Some questions.
« on: February 27, 2015, 08:44:23 pm »
The CSDML DLLs are in the same folder where the excutable is and I can successfully open a SFML window and print text on it. But for some reason, the Custom Control that is part of this very project, doesn't find such DLLs.

2
DotNet / Re: New to SFML .NET -- Some questions.
« on: February 27, 2015, 03:34:42 pm »
Ok. I've been searching the forum for any info on my topics and I developed this code (more like copy&pasted it):

Code: [Select]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using SFML.Graphics;
using SFML.Window;

namespace SFML
{
    public partial class EFile_SFMLRenderWindow : UserControl
    {
        public SFML.Graphics.RenderWindow renderwindow;
       
        public EFile_SFMLRenderWindow()
        {
            InitializeComponent();
            renderwindow = new SFML.Graphics.RenderWindow(this.Handle);
        }

        protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
        {
            System.Windows.Forms.Application.DoEvents();
            renderwindow.DispatchEvents();
            renderwindow.Clear(SFML.Graphics.Color.Green);
            renderwindow.Display();
        }

        protected override void OnPaintBackground(System.Windows.Forms.PaintEventArgs pevent)
        {
           
        }

        private void EFile_SFMLRenderWindow_Load(object sender, EventArgs e)
        {

        }
    }
}

The problem is that it throws an exception when I try to add it to a form. The errors points to this line:
renderwindow = new SFML.Graphics.RenderWindow(this.Handle);

---------------------------
Microsoft Visual Studio
---------------------------
Failed to create component 'EFile_SFMLRenderWindow'.  The error message follows:

 'System.DllNotFoundException: Unable to load DLL 'csfml-graphics-2': Impossível localizar o módulo especificado. (Exception from HRESULT: 0x8007007E) (...)
---------------------------
OK   
---------------------------

Why is it unable to locate the mentioned DLL? I can use SFML from that very form I'm trying to add this control in.



3
DotNet / Re: New to SFML .NET -- Some questions.
« on: February 27, 2015, 02:26:41 pm »
Correct me if I'm wrong but I think point 2 and 4 were left out on purpose because the user has better control over them through .NET itself?

Nonetheless, it would be rather nice to have delta time automatically calculated in SFML. :)

4
DotNet / New to SFML .NET -- Some questions.
« on: February 27, 2015, 11:26:43 am »
Hello Everyone.

I'm very interested in using SFML in my Game project but I need first to clear some things out of my mind.

1 - Since my game's engine is used also through an editor, I need to know how can I bind SFML's device to a panel or through any other mean that will allow me to anchor its display area and resize it on-the-fly.

2 - I see a Network namespace in other versions of SFML but I can't  find it.NET version. Where is it?

3 - I added the .NET version DLLs of SFML to my project by referencing them on it. Is there anything else I need to do? What are the cfsml dlls? Do I need to copy them to my project's output path?

4 - It seems SFML can also handle time but I can't find a way of using it in .NET version. Where is the SFML's Time object?

Sorry about these potential stupid questions -- I'm just a newbie. And thanks for any possible help regarding these topics!

Pages: [1]