Search found 721 matches

by MrGodin
May 5th, 2018, 2:55 am
Forum: Everything
Topic: FUCK TECHNOLOGY
Replies: 15
Views: 5841

Re: FUCK TECHNOLOGY

Lost most of my projects on a hard drive failure. It bites
by MrGodin
April 5th, 2018, 12:40 am
Forum: Everything
Topic: Life meter out of control
Replies: 5
Views: 1802

Re: Life meter out of control

Another thing you could do is have a state for the enemy. say one for non attack and one for attack, so when in attack mode you apply damage once if hit and can't apply damage until the state has been reset to non attack mode... if that makes sense .. just a thought
by MrGodin
March 12th, 2018, 7:11 pm
Forum: Everything
Topic: Motivations
Replies: 10
Views: 3694

Re: Motivations

Added things like this template <typename T, typename TPredicate> void ForAllOfType(const TPredicate&& mFunction) { auto& vec(groupedByType[GetID<T>()]); for (auto i(0u); i < vec.size(); ++i) mFunction(static_cast<T&>(*vec[i])); } m_EntityMgr->ForAllOfType<MapTile>([this](auto& obj) { if (!obj.Passa...
by MrGodin
March 12th, 2018, 7:04 pm
Forum: Everything
Topic: Motivations
Replies: 10
Views: 3694

Re: Motivations

haha, yup .. sure does eh. I used that system but have since altered it.
by MrGodin
March 10th, 2018, 11:39 pm
Forum: Everything
Topic: Motivations
Replies: 10
Views: 3694

Re: Motivations

hey albino, hows things. I'm in a slump as well been off from work for a couple months (as is the case every winter) but I haven't written a stitch of code for over a month myself. Motivation is my primary reason. Sometimes I get grand ideas then get in over my head lol. I might start back up again ...
by MrGodin
January 22nd, 2018, 4:58 am
Forum: Everything
Topic: writing std::vector data to file..
Replies: 11
Views: 3720

Re: writing std::vector data to file..

I think i'll do this sorta file I/O. Never really done to much but it's a better way of doing things and a bit more current i suppose. Thanks for it.
by MrGodin
January 22nd, 2018, 3:50 am
Forum: Everything
Topic: writing std::vector data to file..
Replies: 11
Views: 3720

Re: writing std::vector data to file..

That's a better approach albinopapa. Works real well and i like the arbitrary size of the data. Certainly speed up the process of loading meshes.
by MrGodin
January 21st, 2018, 10:01 pm
Forum: Everything
Topic: writing std::vector data to file..
Replies: 11
Views: 3720

Re: writing std::vector data to file..

I am doing the same thing to image files by loading the image and saving just the pixel data then loading it up and creating a ID3D11ShaderResourceView.. :)
by MrGodin
January 21st, 2018, 9:52 pm
Forum: Everything
Topic: writing std::vector data to file..
Replies: 11
Views: 3720

Re: writing std::vector data to file..

well OK, it works.. this is temp code just to see if it worked template<typename T> struct modelData { std::size_t byteSize; std::size_t container_size; T* data; }; void SaveToFile(const std::string& filename) { modelData<Geometry::LOD_VertexMin> mData; mData.byteSize = sizeof(Geometry::LOD_VertexMi...
by MrGodin
January 21st, 2018, 9:30 pm
Forum: Everything
Topic: writing std::vector data to file..
Replies: 11
Views: 3720

Re: writing std::vector data to file..

I read somewhere that verts.data() contains the iterator pointers as well, is that true ?